[Qt-interest] DragMove Charm and _NET_WM_MOVERESIZE
qzvjtml02 at sneakemail.com
qzvjtml02 at sneakemail.com
Thu Jul 9 21:31:51 CEST 2009
Denis,
Thank you for the response. I did see that page, but I was unable to
glean a method of actually programming that into an application. Do
you know of any examples I could reference? Google hasn't been too
helpful on that.
I appreciate your help!
Kyle Fazzari
On Jul 9, 2009, at 3:14 AM, Denis Dzyubenko denis.dzyubenko-at-
trolltech.com |Qt-interest| wrote:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list