Re: Preserved Window Placement

2012-11-12 Thread jose.ali...@gmail.com
Hi, On Fri, Oct 26, 2012 at 4:07 PM, Havoc Pennington h...@pobox.com wrote: On Wed, Oct 24, 2012 at 2:27 PM, Federico Mena Quintero feder...@gnome.org wrote: Disclaimer/introduction: In the past I've said that saving window geometries is the job of the window manager and shouldn't be

Re: Preserved Window Placement

2012-11-02 Thread Guillaume Desmottes
Le dimanche 28 octobre 2012 à 14:10 -0600, Federico Mena Quintero a écrit : On Sun, 2012-10-28 at 08:53 +, Richard Hughes wrote: I was wondering if we could do something using GtkApplication. It seems a shame to reimplement this in every app when most apps have just one window...

Re: Preserved Window Placement

2012-10-31 Thread Jason Simanek
On Sun 28 Oct 2012 05:00:15 PM CDT, Alberto Ruiz wrote: 2012/10/28 Federico Mena Quintero feder...@gnome.org mailto:feder...@gnome.org Even easier and general-purpose: gtk_window_set_state_saving_key (window, char *key); Not easier, if your app has multiple windows, you can just set a

Re: Preserved Window Placement

2012-10-28 Thread Richard Hughes
On 26 October 2012 15:07, Havoc Pennington h...@pobox.com wrote: This could be even higher-level in fact. All the app must do is specify which windows are the same from invocation to invocation. That is the fundamental problem (what is the key we are saving the window state underneath).

Re: Preserved Window Placement

2012-10-28 Thread Federico Mena Quintero
On Sun, 2012-10-28 at 08:53 +, Richard Hughes wrote: I was wondering if we could do something using GtkApplication. It seems a shame to reimplement this in every app when most apps have just one window... Even easier and general-purpose: gtk_window_set_state_saving_key (window, char

Re: Preserved Window Placement

2012-10-28 Thread Alberto Ruiz
2012/10/28 Federico Mena Quintero feder...@gnome.org Even easier and general-purpose: gtk_window_set_state_saving_key (window, char *key); Not easier, if your app has multiple windows, you can just set a property on/off on your app class and have the internals of GtkApplication do what is

Re: Preserved Window Placement

2012-10-26 Thread Havoc Pennington
On Wed, Oct 24, 2012 at 2:27 PM, Federico Mena Quintero feder...@gnome.orgwrote: Disclaimer/introduction: In the past I've said that saving window geometries is the job of the window manager and shouldn't be done by applications. THIS IS WRONG. I retract myself. Applications should be

Re: Preserved Window Placement

2012-10-26 Thread Havoc Pennington
The XSMP spec is more or less impossible to make sense out of. But to the extent people have tried, it has not been a useful undertaking. Here's one old thread: https://bugzilla.gnome.org/show_bug.cgi?id=79285 There are certainly useful things to do related to session management and state

Re: Preserved Window Placement

2012-10-26 Thread Alan Cox
On Fri, 26 Oct 2012 10:39:56 -0400 Havoc Pennington h...@pobox.com wrote: The XSMP spec is more or less impossible to make sense out of. But to the extent people have tried, it has not been a useful undertaking. If someone took XSMP round the back and shot it while adding support for a better

Re: Preserved Window Placement

2012-10-25 Thread Alan Cox
excludes providing the option of preserved window placement. Obviously for now this is simply not a priority for X. I X has supported this since the 1990s maybe earlier. The fact Gnome doesn't do it by default is a Gnome decision. In some respects asking whether it is a priority for X is a bit

Re: Preserved Window Placement

2012-10-25 Thread Jason Simanek
Alan, Thanks for laying out all of that info about the players involved and how they would need to work together for preserved window placement. On 10/25/2012 08:25 AM, Alan Cox wrote: Please point me in the direction of the people I should be discussing this with. I would say

Re: Preserved Window Placement

2012-10-25 Thread Federico Mena Quintero
/Reference.html NOT THAT WE WANT TO MIMIC OSX. But it is a good example. Thinking about preserved window placement never even came to mind until I started using Linux, where it basically doesn't exist. In the history of Mac OS it worked consistently enough that I took it for granted. No point

Re: Preserved Window Placement

2012-10-24 Thread Ross Burton
On Wednesday, 24 October 2012 at 00:13, Luis Menina wrote: Do you know the geometry option in X11? http://en.wikibooks.org/wiki/Guide_to_X11/Starting_Programs#Specifying_window_geometry Thanks for the link. Seems a bit backwards that I would have to do this via each program's

Re: Preserved Window Placement

2012-10-24 Thread Jason Simanek
a philosophical one? On the Devil's Pie site you say “Metacity is a lean window manager.” So does the challenge of preserved window placement come out of a belief that this is not something that should be managed by the window manager? I would think simply preserving the specific absolute position

Re: Preserved Window Placement

2012-10-24 Thread Ross Burton
On 24 October 2012 14:28, Jason Simanek jsima...@gmail.com wrote: Is it an issue of the complexity of the problem being too great and the interest in solving it being too small? Basically, yes. Restoring the location of arbitrary windows from outside of the application is hard. Applications

Re: Preserved Window Placement

2012-10-24 Thread Alan Cox
order they were in. Most applications seem to remember whether or not they were maximized previously. But all of these features are part of the individual programs (and extensions in Firefox's case). It's supposed to be a property of the X session management, including automatically

Re: Preserved Window Placement

2012-10-24 Thread Federico Mena Quintero
On Wed, 2012-10-24 at 08:28 -0500, Jason Simanek wrote: I would think simply preserving the specific absolute position of the windows of the various applications a user regularly employs would be much easier than calculating a dynamic position on the fly every time a new application is

Re: Preserved Window Placement

2012-10-24 Thread Ray Strode
Hi, On Wed, Oct 24, 2012 at 12:17 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: It's supposed to be a property of the X session management, including automatically restarting applications that were running before (which Gnome doesn't bother to do). This is usually managed by a mix of the

Re: Preserved Window Placement

2012-10-24 Thread Jason Simanek
/ApplicationKit/Classes/NSWindowController_Class/Reference/Reference.html NOT THAT WE WANT TO MIMIC OSX. But it is a good example. Thinking about preserved window placement never even came to mind until I started using Linux, where it basically doesn't exist. In the history of Mac OS it worked consistently

Re: Preserved Window Placement

2012-10-24 Thread Jason Simanek
things like have windows open on multiple desktops and machines at once. Yes, I understand the complexity of X and its wide array of abilities beyond the single-user desktop interface. But none of those many capabilities excludes providing the option of preserved window placement. Obviously for now

Re: Preserved Window Placement

2012-10-23 Thread Luis Menina
Do you know the geometry option in X11? http://en.wikibooks.org/wiki/Guide_to_X11/Starting_Programs#Specifying_window_geometry Thanks for the link. Seems a bit backwards that I would have to do this via each program's launch command, but at least it's an option. Course, in Gnome 2 this

Re: Preserved Window Placement

2012-10-23 Thread Jason Simanek
On 10/23/2012 06:13 PM, Luis Menina wrote: Maybe devil's pie still works with Mutter ? http://burtonini.com/blog/computers/devilspie I've dabbled with Devil's Pie. Still seems bizarre that a user would need to type in dimensions for their windows. What I really want is to hear that the

Preserved Window Placement

2012-10-21 Thread Jason Simanek
Hi, One of the things about Linux desktop environments that continues to frustrate me is a lack of preserved window placement (and dimensions) for different applications. Every time an application is started it is placed on the screen in some system-wide default or computed location. Does

Re: Preserved Window Placement

2012-10-21 Thread Ma Xiaojun
Do you know the geometry option in X11? http://en.wikibooks.org/wiki/Guide_to_X11/Starting_Programs#Specifying_window_geometry I'm not sure whether modern desktop environments break such convention, though. ___ desktop-devel-list mailing list

Re: Preserved Window Placement

2012-10-21 Thread Jason Simanek
Hi, On 10/21/2012 02:24 PM, Ma Xiaojun wrote: Do you know the geometry option in X11? http://en.wikibooks.org/wiki/Guide_to_X11/Starting_Programs#Specifying_window_geometry Thanks for the link. Seems a bit backwards that I would have to do this via each program's launch command, but at least