! 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 !
xfce4-panel tasklist widget can lose windows on multimonitor setup.
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
Window Buttons

Comments

Description Alistair Buxton 2014-01-17 01:23:26 CET
Created attachment 5319 
Patch to fix it.

The tasklist widget has an option to only show windows from the current monitor. This works by calculating the centre pixel of the window, and then testing that against the monitor. However, it is possible to position a window such that the centre pixel does not appear on any monitor.

Instead, the tasklist should test windows against every monitor to find which monitor contains the largest area of the windoww; this monitor is where the tasklist button should be displayed. If the window does not intersect any monitor, default to monitor 0.
Comment 1 Alistair Buxton 2014-01-17 01:46:17 CET
Created attachment 5320 
Refreshed patch
Comment 2 Alistair Buxton 2014-01-17 02:33:01 CET
Created attachment 5321 
Patch with g_new/g_renew instead of malloc/free

Bug #10637

Reported by:
Alistair Buxton
Reported on: 2014-01-17
Last modified on: 2014-01-17

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
Unspecified

Attachments

Patch to fix it. (5.43 KB, patch)
2014-01-17 01:23 CET , Alistair Buxton
no flags
Refreshed patch (5.46 KB, patch)
2014-01-17 01:46 CET , Alistair Buxton
no flags
Patch with g_new/g_renew instead of malloc/free (5.54 KB, patch)
2014-01-17 02:33 CET , Alistair Buxton
no flags

Additional information