mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
wmaker: Add new options for dragging maximized windows.
You can now configure the behavior when dragging a maximized window by setting DragMaximizedWindow in ~/GNUstep/Defaults/WindowMaker. The options are: - Move: Move the window and retain its maximized status and geometry (the current behavior and the default). - RestoreGeometry: Move the window and unmaximize it, restoring its original geometry. - Unmaximize: Move the window and unmaximize it, retaining its maximized geometry. - NoMove: Don't move the window. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
81e2b42746
commit
9937566ec4
@@ -1724,7 +1724,7 @@ int wMouseMoveWindow(WWindow * wwin, XEvent * ev)
|
||||
|| abs(ev->xmotion.y_root - event.xmotion.y_root) >= MOVE_THRESHOLD) {
|
||||
|
||||
if (wwin->flags.maximized) {
|
||||
if (wPreferences.unmaximize_on_move) {
|
||||
if (wPreferences.drag_maximized_window == DRAGMAX_RESTORE) {
|
||||
float titlebar_ratio;
|
||||
int new_x, new_y;
|
||||
|
||||
@@ -1736,7 +1736,8 @@ int wMouseMoveWindow(WWindow * wwin, XEvent * ev)
|
||||
wWindowMove(wwin, new_x, new_y);
|
||||
moveData.realX = moveData.calcX = wwin->frame_x;
|
||||
moveData.realY = moveData.calcY = wwin->frame_y;
|
||||
} else {
|
||||
}
|
||||
if (wPreferences.drag_maximized_window == DRAGMAX_UNMAXIMIZE) {
|
||||
wwin->flags.maximized = 0;
|
||||
wwin->flags.old_maximized = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user