Re: [Fxruby-users] switch to full screen mode
Status: Inactive
Brought to you by:
lyle
From: Simon S. <ne...@ad...> - 2004-05-24 22:52:36
|
jeroen <je...@fo...> wrote: > On Monday 24 May 2004 09:09 am, Simon Strandgaard wrote: > > I somewhere read a reply by Jeroen, that some windowmanagers ignore > > the decoration requests.. I guess in order to switch from > > window-mode (with decorations) to full-screen (borderless) then > > I have to close the window and spawn a full-screen window. > > The maximize requires the window manager to understand "extended window manager > hints". See freedesktop.org for details. > > My first choice would be to see if the blackbox people have added this already, > and if not, request it from them [it'll help with ALL modern GUI apps, not > just FOX but also gnome and kde]. I just tried a quick switch to FWM, there resize are working. However I forgot to close my mail-client (sylpheed), and it of cause hadn't written it configuration to disk. The fxruby folder I created today did not survive *sigh*. I would have liked to reply to your other mail, but cannot. Conclusion1: write config to file immediately after a the user have changed something. Conclusion2: close all windows before switching window-manager. > While you're waiting, you can create a borderless toplevel window and reparent > into that. This should work AFIAK. > The advantage of reparenting is that you can reparent again to move back to > the original toplevel window when you come out of full screen mode again. I think I understand what you are saying, however I don't know how to 'reparent'. Any hints ? I partially solved it myself by inherit from FXDialogBox, except that A) when in windowed mode, the window is not resizable. B) don't know how to hide MainWindow. My Ruby implementation can be seen here: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/buffer/viewfox.rb?rev=1.29&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup BTW: thanks for the suggestions :-) -- Simon Strandgaard |