[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    fullscreen & kpanel & taskbar
From:       "Guillermo P. Marotte" <g-marotte () usa ! net>
Date:       1999-02-25 4:31:02
[Download RAW message or body]

Hello.

Due to the new always-on-top kpanel's feature, I've to change the code
in aktion to make it work in full screen. The code for make it go full
screen looks like (as suggested in a previous thread):

   QPoint p;
   p.setX(0);
   p.setY(0);
   oldGeometry = KWM::geometry( winId(), false);
   recreate(NULL, WStyle_Customize | WStyle_NoBorder | WType_Popup,
            p, false);
   setGeometry( 0, 0, desktopWidth, desktopHeight );
   show();

It works, but then when I want to go back to normality, using:

   recreate(NULL, WStyle_Customize | WStyle_NormalBorder |
            WType_TopLevel, p, false);
   show();
   KWM::setGeometry( winId(), oldGeometry);

... strange things happens: the keyboard doesn't works any more, and
the window remains full-screen!
What's wrong with the code? Is there any other way to make a window
full-screen? (how the screensavers do the trick?)

I'll appreciate any help.
Cya!
Guillermo.
-----------------------------------------------------------------
         (__)
         (oo)                   U
  /-------\/                /---V
 / |     ||                * |--|                  .
*  ||----||
   ~~    ~~
Cow at 1 meter.     Cow at 100 meters.     Cow at 10,000 meters.
-----------------------------------------------------------------
Guillermo P. Marotte
g-marotte@usa.net
ICQ 10088842
Av. Gorritti 4854 -
(042) 898030
Santa Fe - Argentina
http://www.geocities.com/SiliconValley/Haven/3864 (aKtion! & KModBox)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic