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 351647 - Metacity can not be restricted to single screen
Metacity can not be restricted to single screen
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: general
2.14.x
Other All
: Normal enhancement
: ---
Assigned To: Thomas Thurman
Metacity maintainers list
: 567808 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-16 17:15 UTC by cp_n18
Modified: 2016-08-18 13:38 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch to disable multi-screen support (402 bytes, patch)
2006-08-16 17:17 UTC, cp_n18
needs-work Details | Review
Ignore comma-separated list of screens (3.57 KB, patch)
2009-01-19 04:34 UTC, Thomas Thurman
needs-work Details | Review

Description cp_n18 2006-08-16 17:15:30 UTC
Metacity can not be resticted to a single screen, but attempts to manage all screens in a multihead system
Comment 1 cp_n18 2006-08-16 17:17:46 UTC
Created attachment 71025 [details] [review]
Patch to disable multi-screen support

This patch restricts metacity to the first screen (:0.0)
Comment 2 Thomas Thurman 2006-08-16 17:24:31 UTC
Isn't managing all the screens generally what's wanted for most people?

(Reporter: thanks for the patch; please in future generate them with the -u option on this bugzilla)
Comment 3 Havoc Pennington 2006-08-16 17:36:33 UTC
This patch is clearly wrong, since managing all screens is the normal case, we wouldn't want to just disable that. Metacity will also ignore any screens that already have a WM; so you could skip a screen by starting fvwm or twm or something on it first.

An appropriate patch might be some kind of skip_screens=[2,3] list or something like that.
Comment 4 cp_n18 2006-08-16 17:47:18 UTC
I agree with Havoc that a more "appropriate" patch would use some sort of environment variable, or configuration option; I'm just not sure how to best implement that "properly"

And, Thomas, you're right that most people want to manage all the screens.  I happen to be doing work for somebody only wants a plain X environment... no window manager, no gnome-panel, no nautilus.  The monitor is 1024x1024 (really... not a typo), and they need their usable display to be that same size. 
Comment 5 Elijah Newren 2006-08-20 02:58:56 UTC
Just helping Havoc out by marking the patch status for him...  ;-)
Comment 6 Thomas Thurman 2008-11-23 12:03:38 UTC
I could make it a gconf option to have a list of integers which were screen numbers.  Or we could pass it in on the command line.  What would you prefer?
Comment 7 cp_n18 2008-11-23 18:30:22 UTC
I think a gconf item would be better; multiple applications would have access to it, right?
Comment 8 Thomas Thurman 2008-11-23 18:37:34 UTC
Yes.

Clearly the default should be to use all screens available.  With that in mind, would it be useful for you for the list to be a list of screens it SHOULDN'T manage, rather than ones which it should (so that the default was an empty list)?
Comment 9 Thomas Thurman 2009-01-14 23:26:59 UTC
*** Bug 567808 has been marked as a duplicate of this bug. ***
Comment 10 Andrew Zabolotny 2009-01-17 23:57:14 UTC
I agree that by default it should do what everybody expects (e.g. start on all screens) and just have an additional option to tell which screens should be ignored.

Since, as you have told me, metacity will run on all screens but of a single display, a simple comma-separated list of screen numbers to ignore would work.
Comment 11 Thomas Thurman 2009-01-19 04:34:04 UTC
Created attachment 126737 [details] [review]
Ignore comma-separated list of screens

Here's my attempt at solving this one.  Let me know whether it works for you.
Comment 12 Andrew Zabolotny 2009-02-08 01:43:10 UTC
Sorry for the delay, finally I have tested it.

Yes it works although I had to patch /usr/bin/gnome-wm in order to add the --ignore-screens=1 parameter to metacity command line. However, after killing metacity it's restarted by gnome-session without any parameters.

I think a gconf option would be much better. But since someone may run multiple metacities on different displays I still think it would be better to be able to specify the full screen name to ignore (e.g. either "1" or "0.1", if user wants to be more specific).

Anyway, I have enabled compositing on :0.0 and still on :0.1 video plays without tearing. Hurray! :)
Comment 13 Thomas Thurman 2009-02-09 17:36:17 UTC
If it was in gconf, would a string be better or a list of integers?  Probably a string because nobody seems to know the lists. :)
Comment 14 Andrew Zabolotny 2009-02-14 12:37:59 UTC
I don't know how you would represent a string like "0.1 .2" as a list of integers. So in my opinion, a string would be the best (using either comma or spaces as separator).