Opened 6 years ago

Closed 5 years ago

Last modified 20 months ago

#10712 closed defect (fixed)

wrong cursor on welcome screen

Reported by: dsd Owned by: erikos
Priority: high Milestone:
Component: sugar Version: Development build as of this date
Keywords: wm Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: test in build
Verified: no


On the sugar welcome screen where you are asked for your name, the mouse cursor is a regular arrow instead of the big sugar one. Reproduced on 11.2.0 build 9.

Change History (14)

comment:1 Changed 6 years ago by erikos

  • Action Needed changed from never set to code
  • Keywords wm added
  • Version changed from not specified to Development build as of this date

Looks like we set the cursor in sugar because otherwise metacity sets it. Looks like we do set it too late for the intro screen.

def setup_window_manager():
    logging.debug('STARTUP: window_manager')

    # have to reset cursor(metacity sets it on startup)                                                                                                      
    if'echo $DISPLAY; xsetroot -cursor_name left_ptr', shell=True):
        logging.warning('Can not reset cursor')

    if'metacity-message disable-keybindings',
        logging.warning('Can not disable metacity keybindings')

comment:2 Changed 6 years ago by RafaelOrtiz

FWIW I've been tempted to report this, but I didn't have the time. Thanks for looking.

comment:3 Changed 6 years ago by erikos

Ok, I have been following the attempts to handle the root issue:

1) First, we tried to set the gnome cursor_theme to use the sugar one:

2) Because this broke the GNOME cursor when logging into GNOME we did reset the cursor once we logged into Sugar "xsetroot -cursor_name left_ptr" #1433

3) We moved this code around since the "Alt+Space" shortcut was not working anymore, we do set the the cursor once the window-manager-changes for the shell window #1476

4) we once more moved the code to supress a race condtion: #1371

comment:4 Changed 6 years ago by mikus

This ticket was written against the "screen where you are asked for your name". [Through experience, the user ought to learn what to do in the specific case of this 'your name' screen.] But the problem symptom is more widespread than that.:

I think it is in sugar-0.88 (or perhaps in 0.90) where EVERY instance of Sugar starting on the XO first displays that miniscule (on XO screen) GNOME cursor. The problem is that immediately before, a completely blank white screen was being shown -- unless the user is paying close attention, he may not realize (until Sugar's centered XO icon appears) that Sugar has started -- the difficult-to-see small cursor might confuse the user into thinking "nothing is happening".

comment:5 Changed 6 years ago by sascha_silbe

I can't reproduce this using Debian Squeeze.
As long as the following line is in sugar(.in) and metacity gets started, the Sugar cursor is shown right from the start (even if I start an xterm instead of Sugar):

echo Xcursor.theme: sugar | xrdb -merge

Tested with sugar-jhbuild + sugar-emulator, sugar-jhbuild + ~/.xsession and native Debian packages + ~/.xsession.

However, I could reproduce the issue on a Dextrose-3 build, even after downgrading metacity from 2.30.3 to 2.30.0 (Debian ships 2.30.1 for Squeeze). Since the cursor shows fine as soon as Sugar is started iff the above line is used, I assume that the cursor theme is found, just not used.

If I add an xsetroot invocation right in front of the metacity invocation, the cursor switches to the Sugar cursor (xsetroot) and back to the default cursor (metacity).

We should investigate why metacity behaves differently on Fedora (compared to Debian). Neither Debian nor Fedora apply any patches that look like they might affect this, so either it's an unintended side effect (could be checked by rebuilding both packages with no patches applied) or a bug in some other package (e.g. Xorg).

comment:6 Changed 6 years ago by erikos

  • Priority changed from normal to high

comment:7 Changed 6 years ago by erikos

  • Keywords blocker? added

comment:8 Changed 6 years ago by erikos

  • Keywords blocker? removed

comment:9 Changed 5 years ago by erikos

  • Action Needed changed from code to review

Sent patch:

{{{This issue has a long history outlined in detail
in [1]. We once moved the xsetroot around to compensate
for SL #1476 but Daniel fixed this in Metacity in
OLPC #10693.

The proposed patch does work for me in Jhbuild and
the latest 0.94 based OLPC build. Both the cursor in
the intro screen and under Sugar are the correct


comment:10 Changed 5 years ago by erikos

  • Action Needed changed from review to add to build

Patch is in Sugar 0.94.1, which is in my public folder.

comment:11 Changed 5 years ago by dsd

  • Action Needed changed from add to build to test in build

test in 11.3.0 candidate build 882

comment:12 Changed 5 years ago by godiard

Tested in os882. Working as expected.

comment:13 Changed 5 years ago by dsd

  • Resolution set to fixed
  • Status changed from new to closed

in 11.3.0 build 882 on XO-1.75 the GNOME cursor appears briefly and then the sugar cursor appears just before the naming screen is drawn. with the DCON the GNOME cursor will not be shown at all. works well!

comment:14 Changed 20 months ago by Quozl

  • Milestone 11.3.0 deleted

Milestone 11.3.0 deleted

Note: See TracTickets for help on using tickets.