[Qt-interest] DragMove Charm and _NET_WM_MOVERESIZE

Denis Dzyubenko denis.dzyubenko at trolltech.com
Thu Jul 9 12:14:48 CEST 2009


Hello Kyle,

qzvjtml02 at sneakemail.com wrote:
> 	I have an application that uses the window flags "Qt::Window |  
> Qt::CustomizeWindowHint." I use this to specify exactly how the window  
> should act rather than use the titlebar and associated buttons. This  
> resulted in me needing to use code like the DragMove charm (http://labs.trolltech.com/blogs/2009/03/20/moving-top-level-window-by-dragging/ 
> ) in order to actually have my application movable. Unfortunately,  
> this had some side effects I did not anticipate. For example, I am  
> running an Ubuntu installation with a compiz wobbly windows effect. My  
> window now does not wobble, as I've removed all window manager control  
> from it (other than resizing). I noticed a blurb on the bottom of the  
> previously linked blog post on how I should use _NET_WM_MOVERESIZE on  
> X11 rather than the DragMove charm. However... I have no idea how to  
> do so. Can anyone help me? Looking at the link he referenced it's  
> exactly what I need, I just don't know how to do it! I'd appreciate  
> any assistance!

To make use of _NET_WM_MOVERESIZE protocol you have to write 
non-portable code and use X11 functions. The protocol itself is 
described here: 
http://standards.freedesktop.org/wm-spec/1.4/ar01s04.html#id2568642

-- 
Denis Dzyubenko
Software Engineer
Nokia, Qt Software



More information about the Qt-interest-old mailing list