File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ #### Additions
6
+
7
+ - ` Window::start_interactive_move ` to enable dragging the window with a user action
8
+
5
9
## 0.12.2 -- 2020-12-30
6
10
7
11
#### Changes
Original file line number Diff line number Diff line change @@ -669,6 +669,20 @@ impl<F: Frame + 'static> Window<F> {
669
669
pub fn set_frame_config ( & mut self , config : F :: Config ) {
670
670
self . frame . borrow_mut ( ) . set_config ( config)
671
671
}
672
+
673
+ /// Start an interactive, user-driven move of the surface
674
+ ///
675
+ /// This request must be used in response to some sort of user action
676
+ /// like a button press, key press, or touch down event. The passed
677
+ /// serial is used to determine the type of interactive move (touch,
678
+ /// pointer, etc).
679
+ ///
680
+ /// The server may ignore move requests depending on the state of
681
+ /// the surface (e.g. fullscreen or maximized), or if the passed serial
682
+ /// is no longer valid.
683
+ pub fn start_interactive_move ( & self , seat : & wl_seat:: WlSeat , serial : u32 ) {
684
+ self . shell_surface . move_ ( seat, serial) ;
685
+ }
672
686
}
673
687
674
688
impl < F : Frame > Drop for Window < F > {
You can’t perform that action at this time.
0 commit comments