This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Moving a window out of the desktop area (with XMoveWindow)

Tags: None
(comma "," separated)
Espen
Registered Member
Posts
2
Karma
0
Hi (first post, hopefully to the most relevant group)

I'm testing out shaped windows with (obiviously) no visible window decorations. To move a window I can use the Alt-LMB but that may not be so obvious to (new linux/X11) users. So I have added support for moving windows by just using the LMB (no Alt button needed) and doing XMoveWindow() calls when needed.

This work mostly fine, but in KDE 4.1.3 (Ubuntu 8.10) I am unable to move the window partly outside the desktop the same way Alt+LMB can. The window manager stops any movement when one of the window borders hit the desktop area limit. Other window managers allow that. Is this a bug or feature in kwin (or its libraries)?

Is there a way to make out-of-screen placement possible? Either configuring kwin or something else? Using an override-redirect window is not really an option.
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS
Hey, I am using NETRootInfo::moveResizeRequest in kruler and it works fine with the window borders. You can have a look at http://websvn.kde.org/trunk/KDE/kdegraphics/kruler/klineal.cpp?revision=923948&view=markup and then the methods mousePressEvent and mouseReleaseEvent.


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
Espen
Registered Member
Posts
2
Karma
0
msoeken wrote:Hey, I am using NETRootInfo::moveResizeRequest in kruler and it works fine with the window borders. You can have a look at http://websvn.kde.org/trunk/KDE/kdegraphics/kruler/klineal.cpp?revision=923948&view=markup and then the methods mousePressEvent and mouseReleaseEvent.


Yep. That did the trick. Thanks. I have managed to overlook the _NET_WM_MOVERESIZE functionality.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell