mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
More (un)maximize tweaks.
Update the saved X co-ordinate of a window which was moved when maximized (only) vertically so that unmaximizing the window restores its dimensions without warping it back to its previous X position. Similarly update the saved Y co-ordinate of a window which was moved when maximized (only) horizontally. Handle Maximus as a special case. We remember the Maximusized X and Y co-ordinates then adjust the restored co-ordinates relative to the delta between the window's position just after Maximusizing and its position just before restoring. So for example if a window is Maximusized, moved 100 pixels to the left and restored, it will end up 100 pixels left of its original geometry. Also fix "jumping window" bug reported by Christian Wittmer: This "jumping window" happens only when you 1) open new xterm (STRG +n) 2) current position is (+64, +0) 3) maximize window vertically 4) undo maximizing 5) move window to the right or left (up or down as you like) I moved right to (+450, +0) 6) maximize vertically again 7) and undo maximizing 8) window jumps back to (+64, ..) position If you move a new opened window to a new position (e.g. +200, +200) and then start with "3)". window is jumping back "+200, +200"
This commit is contained in:
committed by
Carlos R. Mafra
parent
8edb9dad81
commit
81eefca4ef
@@ -31,6 +31,12 @@
|
||||
#define MAX_IGNORE_XINERAMA (1 << 5)
|
||||
#define MAX_KEYBOARD (1 << 6)
|
||||
|
||||
#define SAVE_GEOMETRY_X (1 << 0)
|
||||
#define SAVE_GEOMETRY_Y (1 << 1)
|
||||
#define SAVE_GEOMETRY_WIDTH (1 << 2)
|
||||
#define SAVE_GEOMETRY_HEIGHT (1 << 3)
|
||||
#define SAVE_GEOMETRY_ALL SAVE_GEOMETRY_X | SAVE_GEOMETRY_Y | SAVE_GEOMETRY_WIDTH | SAVE_GEOMETRY_HEIGHT
|
||||
|
||||
void wSetFocusTo(WScreen *scr, WWindow *wwin);
|
||||
|
||||
int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
|
||||
@@ -71,6 +77,7 @@ void wFullscreenWindow(WWindow *wwin);
|
||||
void wUnfullscreenWindow(WWindow *wwin);
|
||||
|
||||
void animateResize(WScreen *scr, int x, int y, int w, int h, int fx, int fy, int fw, int fh);
|
||||
void update_saved_geometry(WWindow *wwin);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user