Re: FVWM: Force restore of titles and borders on Gnome applications
Dov Grobgeld wrote: Hello, In recent Gnome applications, e.g. gthumb, evince, eog, there has been a trend to remove the window manager border and title and do these internally in the application. I have been looking for a gnome way of turning off this behavior as it seriously destroys my work flow, and after failing to do so, I tried to make my prefered window manager the last twenty years, fvwm, block these requests, but so far without any success. I have tried the following configuration parameters: Style * GNOMEIgnoreHints Style * Title,Handles But unfortunately these are ignored for the gnome windows that still end up with the following properties as can be seen by fvwm identify: Boundary Width: 0 NoTitle: Yes Why are these requests ignored? Is there any other property that can be used to force the title and the handles? If not, could someone point me to the sources where this request is received and how it is handled, and where I could block it? Thanks! Dov Hi! I don't know if this helps you or other FVWM users, and I don't know how sustainable my solution really is, but... ... some weeks ago, I set up a new productive environment based on Debian Wheezy (Jessie was not stable yet back then). I too use some tools from KDE and Gnome such as 'konqueror', 'ksnapshot' or 'gedit'. When using 'gedit' on my FVWM based desktop, I noticed strange behavior: The current tab looks exactly like all other tabs (so I cannot optically find out wich one is active) and the title bar is not updated correctly by 'gedit'. My solution is: - I strictly do not use tools from KDE4 and Gnome. - Instead, I installed Trinity (the fork of KDE3) and MATE (the fork of Gnome 2) So my tools are now 'konqueror' / 'ksnapshot' from Trinity and the name of my 2nd editor is 'pluma' now instead of 'gedit'. The result: Everything works fine (insofar as one can expect from a thoroughly tailored VNC environment - working with xvnc4viewer). I don't know which nasty surprises I will expect when I will setup my first Debian Jessie environment with the same strategy, but with Wheezy, I just got away with that, particularly also because I do not need some really new features of the tools I use from Trinity and MATE and because I can be sure that the forks are maintained to some degree (regarding security aspects and so on) by their respective maintainers. So, try looking whether MATE provides all you need from Gnome, and perhaps you will be happy for the next few years. Greetings from Germany, Michael
Re: FVWM: Force restore of titles and borders on Gnome applications
There are some desktop applications like evince and gThumb that either don't exist in mate or are not up-to-date. I therefore prefer using the latest gnome apps. Meanwhile I have improved my patch to decorations.c (after realizing that the resource name is available through the FvwmWindow pointer!) so it is a bit better as it at black lists on the application name and not its title: // Ugly work around to force border width and // title on some gnome applications. if (strcmp(t-class.res_name,eog)==0 || strcmp(t-class.res_name,evince)==0 || strcmp(t-class.res_name,nautilus)==0 || strcmp(t-class.res_name,gthumb)==0 ) decor = -1; I still hope to figure out why the style settings do not provide the same functionality. Regards, Dov On Tue, Jun 9, 2015 at 5:45 AM, Michael Großer michael.gros...@gmx.de wrote: Dov Grobgeld wrote: Hello, In recent Gnome applications, e.g. gthumb, evince, eog, there has been a trend to remove the window manager border and title and do these internally in the application. I have been looking for a gnome way of turning off this behavior as it seriously destroys my work flow, and after failing to do so, I tried to make my prefered window manager the last twenty years, fvwm, block these requests, but so far without any success. I have tried the following configuration parameters: Style * GNOMEIgnoreHints Style * Title,Handles But unfortunately these are ignored for the gnome windows that still end up with the following properties as can be seen by fvwm identify: Boundary Width: 0 NoTitle: Yes Why are these requests ignored? Is there any other property that can be used to force the title and the handles? If not, could someone point me to the sources where this request is received and how it is handled, and where I could block it? Thanks! Dov Hi! I don't know if this helps you or other FVWM users, and I don't know how sustainable my solution really is, but... ... some weeks ago, I set up a new productive environment based on Debian Wheezy (Jessie was not stable yet back then). I too use some tools from KDE and Gnome such as 'konqueror', 'ksnapshot' or 'gedit'. When using 'gedit' on my FVWM based desktop, I noticed strange behavior: The current tab looks exactly like all other tabs (so I cannot optically find out wich one is active) and the title bar is not updated correctly by 'gedit'. My solution is: - I strictly do not use tools from KDE4 and Gnome. - Instead, I installed Trinity (the fork of KDE3) and MATE (the fork of Gnome 2) So my tools are now 'konqueror' / 'ksnapshot' from Trinity and the name of my 2nd editor is 'pluma' now instead of 'gedit'. The result: Everything works fine (insofar as one can expect from a thoroughly tailored VNC environment - working with xvnc4viewer). I don't know which nasty surprises I will expect when I will setup my first Debian Jessie environment with the same strategy, but with Wheezy, I just got away with that, particularly also because I do not need some really new features of the tools I use from Trinity and MATE and because I can be sure that the forks are maintained to some degree (regarding security aspects and so on) by their respective maintainers. So, try looking whether MATE provides all you need from Gnome, and perhaps you will be happy for the next few years. Greetings from Germany, Michael
FVWM: Force restore of titles and borders on Gnome applications
Hello, In recent Gnome applications, e.g. gthumb, evince, eog, there has been a trend to remove the window manager border and title and do these internally in the application. I have been looking for a gnome way of turning off this behavior as it seriously destroys my work flow, and after failing to do so, I tried to make my prefered window manager the last twenty years, fvwm, block these requests, but so far without any success. I have tried the following configuration parameters: Style * GNOMEIgnoreHints Style * Title,Handles But unfortunately these are ignored for the gnome windows that still end up with the following properties as can be seen by fvwm identify: Boundary Width: 0 NoTitle: Yes Why are these requests ignored? Is there any other property that can be used to force the title and the handles? If not, could someone point me to the sources where this request is received and how it is handled, and where I could block it? Thanks! Dov
Re: FVWM: Force restore of titles and borders on Gnome applications
On 8 June 2015 at 10:16, Dov Grobgeld dov.grobg...@gmail.com wrote: Hello, In recent Gnome applications, e.g. gthumb, evince, eog, there has been a trend to remove the window manager border and title and do these internally in the application. I have been looking for a gnome way of turning off this behavior as it seriously destroys my work flow, and after failing to do so, I tried to make my prefered window manager the last twenty years, fvwm, block these requests, but so far without any success. https://github.com/PCMan/gtk3-nocsd -- Thomas Adam
Re: FVWM: Force restore of titles and borders on Gnome applications
Thanks. I used to use the LD_PRELOAD hack, but it stopped working under Fedora 22. Meanwhile I got a very ugly and hackish workaround by adding the following code to decorations.c in fvwm. Actually this hack just illustrates that the style matching fails, but that it is possible to get fvwm to override the requested settings: // Ugly work around to force border width and // title on some gnome applications. if (strcmp(t-name.name,Image Viewer)==0 // eog || strcmp(t-name.name,Recent Documents)==0 // evince || strcmp(t-name.name,Home) == 0 // nautilus || strcmp(t-name.name,gThumb) == 0 // gthumb //|| strcmp(t-name.name,New Tab - Google Chrome) == 0 // google chrome ) { used_width = 5; border_width = 5; decor = -1; } Dov On Mon, Jun 8, 2015 at 12:28 PM, Thomas Adam tho...@fvwm.org wrote: On 8 June 2015 at 10:16, Dov Grobgeld dov.grobg...@gmail.com wrote: Hello, In recent Gnome applications, e.g. gthumb, evince, eog, there has been a trend to remove the window manager border and title and do these internally in the application. I have been looking for a gnome way of turning off this behavior as it seriously destroys my work flow, and after failing to do so, I tried to make my prefered window manager the last twenty years, fvwm, block these requests, but so far without any success. https://github.com/PCMan/gtk3-nocsd -- Thomas Adam