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

List:       kde-commits
Subject:    kdebase/kpager
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2003-07-28 14:43:03
[Download RAW message or body]

CVS commit by lunakl: 

Don't reset other WMHints when disabling input.
Don't set the window type to Toolbar, because KPager is not toolbar,
but set it to ... uhm, let's say Utility, because ... uhm, because I say so.


  M +9 -7      kpager.cpp   1.56


--- kdebase/kpager/kpager.cpp  #1.55:1.56
@@ -98,11 +98,13 @@ KPagerMainWindow::KPagerMainWindow(QWidg
     KWin::setState( winId(), NET::StaysOnTop | NET::SkipTaskbar | NET::Sticky | NET::SkipPager );
     KWin::setOnAllDesktops( winId(), true);
-    KWin::setType( winId(), NET::Tool );
-
-    XWMHints hints;
-    hints.input = false;
-    hints.flags = InputHint;
+    KWin::setType( winId(), NET::Utility );
 
-    XSetWMHints(x11Display(), winId(), &hints);
+    XWMHints *hints = XGetWMHints(x11Display(), winId());
+    if( hints == NULL )
+        hints = XAllocWMHints();
+    hints->input = false;
+    hints->flags |= InputHint;
+    XSetWMHints(x11Display(), winId(), hints);
+    XFree(reinterpret_cast<char *>(hints));
 
     timeout=new QTimer(this,"timeoutToQuit");


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

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