GNOME Bugzilla – Bug 98700
List windows from only one xinerama head
Last modified: 2015-03-24 13:00:35 UTC
I have a dual-head setup with xinerama. On each head I have added a gnome panel with a window-list applet. It's not so pleasant to view all windows on each head. Therefore gnome-panel should have an option to restrict the window list to one head. The enhancement for libwnck I've already submitted (Bug 98698). I'm new in coding for gnome (linux generally) but I've tried to implement something like that for my own purpose. It would be nice to have this extension in CVS.
Created attachment 12341 [details] [review] Patch to enhance gnome-panel for multi-head
Adding patch keyword.
Thanks Jurg. A couple of things - this patch will need to be updated when you make the changes in the libwnck patch Havoc made. Also this should not be a preference for the tasklist, you should be able to figure out which monitor the applet is on and act accordingly. You could use something like: GtkWidget *applet; monitor = gdk_screen_get_monitor_at_window ( gtk_widget_get_screen (applet), applet->window);
adding some keywords.
I personally think it should be merged with the options for windows on current or all workspaces, which is already in GNOME 2.x. That would probably require a string change though, since xinerama technically isn't just different workspaces. The current bevaviour is really annoying though.
I've updated my patch as proposed by Mark. get_monitor_at_window didn't work, but I figured out a possibility via GConf. The libwnck patch (Bug 98698) has been updated, too.
Created attachment 14157 [details] [review] Patch to provide multimonitor support in the tasklist applet
Would be nice if someone could review my patch and if it's ok, commit it.
Adding keywords and upping pri because of updated patch.
Jurg: that is a way too hack way to find out the current monitor :-) You probably want to use gdk_screen_get_monitor_at_point or gdk_screen_get_monitor_at_window. This can't go in until the libwnck patch goes in in any case.
I've improved my patch to Bug 98698 (libwnck) in a way which makes this bug unnecessary.
Can we just close this bug then ?