! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
incorrect '(do not) Show windows from all monitors' behavior
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
Window Buttons

Comments

Description Pim Vullers 2011-02-25 10:11:01 CET
After applying the patch from Bug 7255 the 'Show windows from all monitors' behavior appeared to be fine. However, a new issue emerged.

My situation:
  2 monitors, each with their own panel with the Window Buttons plug-in.

The issue:
  Both instances of the plug-in display window buttons for the windows 
  present on monitor 1, while the windows of monitor 2 are not shown.

  By enabling, and disabling the 'Show windows from all monitors' option in 
  the properties window I get the desired behavior in which the plug-in on 
  panel 1 shown the window buttons for monitor 1, and the plug-in on panel 
  two shown those for monitor 2.

My guess is that the location of a panel, on which monitor it appears, is not detected correctly resulting in the described behaviour.

I am using xfce4-panel-4.8.1 (patched; see Bug 7255) on Gentoo (unstable: ~amd64). I also tested it with xfce4-panel-9999 (git; live ebuild).
Comment 1 Nick Schermer editbugs 2011-02-25 18:03:16 CET
Created attachment 3520 
update on screen position changes

Could you give this patch a shot?
Comment 2 Pim Vullers 2011-02-25 18:17:23 CET
(In reply to comment #1)
> Created attachment 3520 
> update on screen position changes
> 
> Could you give this patch a shot?

I just left my office where I face this issue. I can try if I can reproduce the behaviour at home (also a multiple monitor setup, but currently only a single panel), otherwise I'll let you know on Monday.
Comment 3 Pim Vullers 2011-02-26 16:24:36 CET
I applied the proposed patch against xfce4-panel-4.8.2 (which appeared today in Portage). As far as I can see it solves the issue (reproduced at my triple monitor setup at home). I will also verify it at my office to be sure.
Comment 4 Pim Vullers 2011-02-28 12:04:40 CET
(In reply to comment #3)
> I applied the proposed patch against xfce4-panel-4.8.2 (which appeared today in
> Portage). As far as I can see it solves the issue (reproduced at my triple
> monitor setup at home). I will also verify it at my office to be sure.

Unfortunately the patch does NOT solve the problem at my office laptop. I still have 2 panels showing window buttons from monitor 1, while the windows of monitor 2 aren't listed in any panel.
Comment 5 Pim Vullers 2011-03-22 09:06:58 CET
I've been on a holiday and had my laptop repaired (GPU died). Now I'm back using my two monitors, but still suffering from this bug. Is there anything I can do to help fixing it?
Comment 6 Nick Schermer editbugs 2011-03-27 12:38:02 CEST
Created attachment 3581 
Same as previous patch with with some debugging

Could you try this patch? No code changes, but with some debugging what is triggered in which order.
Comment 7 Pim Vullers 2011-03-28 09:36:44 CEST
Created attachment 3583 
Log of correct behaviour
Comment 8 Pim Vullers 2011-03-28 09:37:19 CEST
Created attachment 3584 
Log of incorrect behaviour
Comment 9 Pim Vullers 2011-03-28 09:37:41 CEST
Created attachment 3585 
Log of incorrect behaviour (again)
Comment 10 Pim Vullers 2011-03-28 09:44:12 CEST
I applied the debugging patch against xfce4-panel-4.8.2. This resulted in the attached logs. The first time the tasklist behaved as expected. The other two times I the tasklist gave the incorrect behavior (for which I started this bug).

For me it is immediately clear that in the first run both monitors are detected:
libtasklist-Message: 0xeda260: 1 monitor found
libtasklist-Message: 0xeda260: geometry is 0,0 1440x900
...
libtasklist-Message: 0xeda6a0: 1 monitor found
libtasklist-Message: 0xeda6a0: geometry is 1440,0 1280x1024

While in the other two runs only the first monitor is found:
libtasklist-Message: 0x1344260: 1 monitor found
libtasklist-Message: 0x1344260: geometry is 0,0 1440x900
...
libtasklist-Message: 0x13446a0: 1 monitor found
libtasklist-Message: 0x13446a0: geometry is 0,0 1440x900

I hope you can do something with this information.
Comment 11 Nick Schermer editbugs 2011-03-30 21:44:25 CEST
Created attachment 3589 
Idle the geometry update

Yeah the geometry was applied before the window had time to move to the other screen, hopefully delaying this update will solve the issue.
Comment 12 Pim Vullers 2011-03-31 10:22:21 CEST
After removing the first 6 lines (concerning docs/manual) from the patch I was able to apply it. Restarting xfce4-panel multiple times and also a fresh login all resulted in the correct behaviour. So for me the problem is solved.

Thanks a lot Nick.
Comment 13 Nick Schermer editbugs 2011-03-31 16:16:57 CEST
Applied in fb48ad9.
Comment 14 Nick Schermer editbugs 2011-12-29 17:43:16 CET
*** Bug 7614 has been marked as a duplicate of this bug. ***

Bug #7340

Reported by:
Pim Vullers
Reported on: 2011-02-25
Last modified on: 2011-12-29
Duplicates (1):
  • 7614 Panel - Show windows from all monitors filtering option not being respected on session create

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Attachments

update on screen position changes (8.05 KB, patch)
2011-02-25 18:03 CET , Nick Schermer
no flags
Same as previous patch with with some debugging (9.17 KB, patch)
2011-03-27 12:38 CEST , Nick Schermer
no flags
Log of correct behaviour (1.72 KB, text/plain)
2011-03-28 09:36 CEST , Pim Vullers
no flags
Log of incorrect behaviour (1.31 KB, text/plain)
2011-03-28 09:37 CEST , Pim Vullers
no flags
Log of incorrect behaviour (again) (1.31 KB, text/plain)
2011-03-28 09:37 CEST , Pim Vullers
no flags
Idle the geometry update (10.07 KB, patch)
2011-03-30 21:44 CEST , Nick Schermer
no flags

Additional information