Ticket #1444 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Activities tray doesn't reflect well on switching between windows if there are non-sugar ones

Reported by: alsroot Owned by: tomeu
Priority: Immediate Milestone: 0.86
Component: sugar Version: 0.85.x
Severity: Blocker Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

|TestCase|
* open two non-sugar X programs
* make them visible at the same time
* switch between them by clicking on windows(not in activity tray)
* activities tray doesn't reflect correct of this switching(it shows the same active window all time)

Attachments

sugar-1444.patch Download (1.6 KB) - added by alsroot 4 years ago.
sugar-1444.2.patch Download (2.2 KB) - added by alsroot 4 years ago.

Change History

in reply to: ↑ description   Changed 4 years ago by alsroot

Replying to alsroot:

|TestCase|
* open two non-sugar X programs

in Terminal

* make them visible at the same time
* switch between them by clicking on windows(not in activity tray)
* activities tray doesn't reflect correct of this switching(it shows the same active window all time)

Changed 4 years ago by alsroot

  Changed 4 years ago by alsroot

  • keywords r? added

The problem is, for all windows(model.shell.Activity) that are created from Terminal we have the same activity_id, not sure maybe thats another issue, but anyway since we create button in activity tray per model.shell.Activity object, it could be more straightforward to use object itself for buttons dictionary rather then activity_id.

  Changed 4 years ago by alsroot

  • status changed from new to closed
  • resolution set to fixed

new patch was reviewed by tomeu on #sugar
 http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/8c8f8c6d3f669bd7f5e5c95b31ae1f6d6d3b494a

The same activity_id issue for all non-sugar windows was moved to #1456.

  Changed 4 years ago by alsroot

  • status changed from closed to reopened
  • resolution fixed deleted

Commited patch doesn't cover all situations, there could be situation then dbus shell method NotifyLaunch() will be invoked before activity window appeared, so activitiestray.activity_added_cb will use None key for created button.

Changed 4 years ago by alsroot

  Changed 4 years ago by alsroot

  • priority changed from Unspecified by Maintainer to Immediate
  • severity changed from Unspecified to Blocker
  • milestone changed from Unspecified by Release Team to 0.86

  Changed 4 years ago by erikos

This one is important, as in 0.86.1 closing activities is broken. We need testing of the bug fixes we land. To give a good example, I applied the fix from above on 9.04 Ubuntu 0.86.1 and it works fine :)

Thanks for the fix!

  Changed 4 years ago by erikos

  • keywords r+ added; r? removed
Note: See TracTickets for help on using tickets.