After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98700 - List windows from only one xinerama head
List windows from only one xinerama head
Status: RESOLVED NOTABUG
Product: gnome-panel
Classification: Other
Component: window list
2.1.x
Other Linux
: High enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-16 12:50 UTC by Jürg Billeter
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch to enhance gnome-panel for multi-head (8.77 KB, patch)
2002-11-16 15:02 UTC, Jürg Billeter
none Details | Review
Patch to provide multimonitor support in the tasklist applet (1.37 KB, patch)
2003-02-06 12:11 UTC, Jürg Billeter
none Details | Review

Description Jürg Billeter 2002-11-16 12:50:06 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.
Comment 1 Jürg Billeter 2002-11-16 15:02:33 UTC
Created attachment 12341 [details] [review]
Patch to enhance gnome-panel for multi-head
Comment 2 Elijah Newren 2002-11-16 22:27:45 UTC
Adding patch keyword.
Comment 3 Mark McLoughlin 2002-11-16 23:59:36 UTC
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);
Comment 4 Vincent Untz 2002-11-18 15:13:21 UTC
adding some keywords.
Comment 5 Gaute Lindkvist 2002-12-20 19:34:44 UTC
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.
Comment 6 Jürg Billeter 2003-02-06 12:10:36 UTC
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.
Comment 7 Jürg Billeter 2003-02-06 12:11:16 UTC
Created attachment 14157 [details] [review]
Patch to provide multimonitor support in the tasklist applet
Comment 8 Jürg Billeter 2003-03-05 19:20:19 UTC
Would be nice if someone could review my patch and if it's ok, 
commit it.
Comment 9 Kjartan Maraas 2003-03-17 20:21:19 UTC
Adding keywords and upping pri because of updated patch.
Comment 10 Mark McLoughlin 2003-04-10 04:56:29 UTC
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.
Comment 11 Jürg Billeter 2003-06-05 12:29:03 UTC
I've improved my patch to Bug 98698 (libwnck) in a way which makes
this bug unnecessary.
Comment 12 Mark McLoughlin 2003-06-05 12:39:41 UTC
Can we just close this bug then ?