unity-2d-for-xmonad icon indicating copy to clipboard operation
unity-2d-for-xmonad copied to clipboard

Panel Geometry not updating when switching physical monitors

Open koraa opened this issue 13 years ago • 4 comments

The Panel Geometry is updated correctly for adding and removing monitors, but not when the user just switches monitor (activating oneother monitor while deactivatng the current). This is because the update is triggered by the slotScreenCountChanged (which is not triggered if the number of active monitors stays the same).

Quickfixes:

  • Do an update on a regular basis (every second or so). Can be cuppled with a check if anything has changed.
  • Get oneother source for a backup event that rescues the panel in this case Actual Fixes:
  • Find the Event that covers all three cases. Using the screen count is not really neat as well.

(assignee: me pls :) )

-- Events that trigger a geometry update --

showEvent resizeEvent slotScreenCountChanged // This triggers the geometry update if a screen is added or removed slotWorkAreaResized // This is what actually should trigger all the geom. updates, but it does not o0

koraa avatar Feb 19 '12 18:02 koraa

(assignee: me pls :) )

Go for it! :)

hamaxx avatar Feb 19 '12 20:02 hamaxx

Lol, i actually ment you to set the assignee of this ticket to $me (I use ticket systems heavily to document the progress of a project :) )

Added Quickfix number 1 with 2s delay.

koraa avatar Feb 20 '12 15:02 koraa

Ok, I added you as a collaborator to the project and assigned this ticket to you :)

hamaxx avatar Feb 20 '12 15:02 hamaxx

Postponed until we find a better way to update the geometry

koraa avatar Feb 21 '12 01:02 koraa