Bug 65162 - Can't start kpager without window decorations
Summary: Can't start kpager without window decorations
Status: RESOLVED FIXED
Alias: None
Product: kpager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Antonio Larrosa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 05:45 UTC by Benj Carson
Modified: 2003-09-30 01:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benj Carson 2003-09-29 05:45:08 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    Debian testing/unstable Packages
OS:          Linux

The usual 'kstart --type override' trick to start applications without window decorations does not work for kpager.  In other words:

$ kstart --type override kpager 

runs kpager in the same way as 

$ kpager

This is really only an aesthetic request, but I'm not the only one who'd like this feature (see here: http://www.kde-forum.org/viewtopic.php?t=947).  I think it'd be great if you could run kpager without any window decorations since once a user has kpager where they want on their desktop, the decos are really just taking up space.  It would be a nice option to turn them off, or at least to be able to start kpager without decorations.

As mentioned in the thread at kde-forum, another handy feature would be auto-hide just like the panel.  That way kpager could be stuck against the desktop edge and would only show up when a user moused over it or clicked a button.

Thanks!


Benj
Comment 1 Antonio Larrosa 2003-09-30 01:43:51 UTC
Subject: kdebase/kpager

CVS commit by antlarr: 

Allows to set the window type with kstart. Fixes 65162
CCMAIL:65162-done@bugs.kde.org
The other idea would take longer to implement, and I don't have much time lately


  M +5 -2      kpager.cpp   1.59


--- kdebase/kpager/kpager.cpp  #1.58:1.59
@@ -99,5 +99,8 @@ KPagerMainWindow::KPagerMainWindow(QWidg
     KWin::setState( winId(), NET::StaysOnTop | NET::SkipTaskbar | NET::Sticky | NET::SkipPager );
     KWin::setOnAllDesktops( winId(), true);
+    if ( KWin::windowInfo( winId(), NET::WMWindowType, 0 ).windowType(NET::Normal) == NET::Normal )
+    {
     KWin::setType( winId(), NET::Utility );
+    }
 
     XWMHints *hints = XGetWMHints(x11Display(), winId());