X11 WM-assisted window moving facility.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
startMovingTogetherWithMouse
(Window window, int mouseButton) Starts moving the top-level parent window of the given window together with the mouse pointer.
-
Method Details
-
startMovingTogetherWithMouse
Starts moving the top-level parent window of the given window together with the mouse pointer. The intended use is to facilitate the implementation of window management similar to the way it is done natively on the platform. Preconditions for calling this method:- WM supports _NET_WM_MOVE_RESIZE (this is checked automatically when an implementation of this interface is obtained).
- Mouse pointer is within this window's bounds.
- The mouse button specified by
mouseButton
is pressed.
- Parameters:
window
- window to start movingmouseButton
- indicates the mouse button that was pressed to start moving the window; must be one ofMouseEvent.BUTTON1
,MouseEvent.BUTTON2
, orMouseEvent.BUTTON3
.
-