Modal Form in fullscreen program PROBLEM lazarus / 32-Linux ---------------------------------------------------------------------- kevinspencer33 · 2011-01-14 14:34 I've mading a program that run in fullscreen mode using Code: [Select]gdk_window_fullscreen(PGtkWidget(Handle)^.window) but, if I try to show a modal form,  the panel of the OS is shown. Here you have an screen capture: http://dl.dropbox.com/u/12475647/Captura-6.png Some one know how to solve this problem? ---------------------------------------------------------------------- Sora-Kun · 2011-01-14 15:13 Hi, I have no Idea about the error, but I have another tip to show your app on a full-screen mod, just copy-paste the following code on your program, exactly on the body of the procedure which will turn on/off full-screen mod: Code: [Select]{$J+} //writeable constants on const   rect: TRect = (Left:0; Top:0; Right:0; Bottom:0);   ws : TWindowState = wsNormal; {$J-} //writeable constants off var   r : TRect; begin   if BorderStyle <> bsNone then   begin     ws := WindowState;     rect := BoundsRect;     BorderStyle := bsNone;     r := Screen.MonitorFromWindow(Handle).BoundsRect;     SetBounds(r.Left, r.Top, r.Right-r.Left, r.Bottom-r.Top) ;   end   else   begin     BorderStyle := bsSizeable;.     if ws = wsMaximized then       WindowState := wsMaximized     else       SetBounds(rect.Left, rect.Top, rect.Right-rect.Left, rect.Bottom-rect.Top) ;   end; end; Hope this will help you, I took it from http://delphi.about.com/od/delphitips2010/qt/delphi-application-full- screen-mode-f11.htm Good luck LinkOS ---------------------------------------------------------------------- Chronos · 2011-01-14 15:24 Here is summarization wiki page about full screen application mode: http://wiki.freepascal.org/Application_full_screen_mode You can add additional useful information.. ---------------------------------------------------------------------- kevinspencer33 · 2011-01-15 12:06 @Linkos: this code don't work well under Gnome... so I used the gtk method. @Chronos: The code that I used is taken directly from this page. Anyway, I decided to don't use modal forms in my app. But this problem it's still a bug from Gnome or Lazarus... I don't know why but I think it may be a Gnome limitation... ---------------------------------------------------------------------- cpicanco · 2017-10-18 18:13 Anything new about that? ---------------------------------------------------------------------- zeljko · 2017-10-18 19:18 it's problem with window managers. Try qt app under kwin (kde) and you'll see that everything works as expected, but same qt app under metacity or any other wm can have strange behaviour.