diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 10:33:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 10:41:38 +0000 |
commit | 51d1fca2041ba4478c5abae59b1ed4fee37ea1ee (patch) | |
tree | eccae16d5e06a8c05d4cc7ddf1951ac90246dc52 /include | |
parent | 6802f760a69f3b1f203d70399f0d73764f9159d5 (diff) |
Related: tdf#98419 gtk3: reimplement passing window move control to wm...
for wayland
Dragging toolbars around to move them (starting with an undocked toolbar, not
the moving outline fake thing) doesn't work under wayland (as far as I can see)
without using gtk_window_begin_move_drag i.e. gtk_window_move doesn't work.
But this is supposed to be used from the initial mouse click (while it works
under wayland from a move, it doesn't work under X from a move) so rework the
last attempt to occur right at the initial click to drag.
Change-Id: I612f188b3e8482307bc816f5aa775530e6092eda
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/window.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index e1922d72ed53..3e61c779a3f0 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -157,11 +157,10 @@ enum class PosSizeFlags PosSize = Pos | Size, All = PosSize, Dropdown = 0x0010, - ByDrag = 0x0020, }; namespace o3tl { - template<> struct typed_flags<PosSizeFlags> : is_typed_flags<PosSizeFlags, 0x003f> {}; + template<> struct typed_flags<PosSizeFlags> : is_typed_flags<PosSizeFlags, 0x001f> {}; } // Flags for Show() @@ -297,10 +296,11 @@ enum class StartTrackingFlags ButtonRepeat = 0x0010, MouseButtonDown = 0x0020, FocusCancel = 0x0040, + UseToolKitDrag = 0x0080, }; namespace o3tl { - template<> struct typed_flags<StartTrackingFlags> : is_typed_flags<StartTrackingFlags, 0x007f> {}; + template<> struct typed_flags<StartTrackingFlags> : is_typed_flags<StartTrackingFlags, 0x00ff> {}; } // Flags for StartAutoScroll() |