sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
262 stars 242 forks source link

Home view activity start-new using Alt key does not work #780

Closed quozl closed 6 years ago

quozl commented 6 years ago

Reproducer: start an activity, stop it, view the home view activity ring, observe the activity icon now has user colour, press and hold the alt key, observe that user colour is removed, click on the icon, release the alt key.

Expected result; activity is started new.

Observed result; no response, no errors logged.

Workaround; right-click, choose start new.

Does not occur on Fedora 18.

Does occur on Ubuntu 16.04, and 18.04 beta.

quozl commented 6 years ago

@Pro-Panda, there was an e-mail to me from GitHub saying you would like to work on this, but the comment is missing from this issue. Is this a regression of GitHub, or did you delete? If you deleted, was there something ambiguous about the issue that needs more details?

rhl-bthr commented 6 years ago

@quozl I deleted and forgot to write the updated one. Sorry So this was what I found:

Do you think I might be on the correct lines ?

quozl commented 6 years ago

No, wrong lines altogether. HomeWindow.__key_press_event_cb is where the alt key press is detected, and it saves state using set_resume_mode; a method of HomeBox.

rhl-bthr commented 6 years ago

@quozl Sorry, my previous statement might be ambiguous. This is what I found. While reproducing the issue,

  1. Press alt: detected by HomeWindow.__key_press_event_cb
  2. Keep holding alt
  3. Clicking on any button after that; button-press-event is not detected by any layer of widgets via any signal
  4. Release alt: detected by HomeWindow.__key_release_event_cb

Proposed Reason - Mouse cursor changes during 3 to one of dragging the window(rdesktop), as thats a feature of Ubuntu provided for any window Supporting Statement - I couldn't reproduce this issue when I log into Sugar Desktop Environment instead of Ubuntu Desktop Environment at the login page of ubuntu. It creates a new activity in that case.

quozl commented 6 years ago

Thanks for the investigation. I agree. For me, symptom only occurs on VM (virt-manager, VirtualBox) under wmaker, and there is no change of cursor image, but the virtual machine window can be dragged.

Symptom does not occur on native hardware.