1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

Maximus: Tiled Maximization

This patch introduces the "tiled maximization" feature, a.k.a. Maximus.

By pressing the keyboard shortcut associated with Maximus, the focused
window will be maximized to the greatest area satisfying the constraint
of not overlapping existing windows.
This commit is contained in:
Carlos R. Mafra
2009-09-02 01:37:47 +02:00
parent 7857f297ea
commit cf62d1591f
7 changed files with 133 additions and 9 deletions

View File

@@ -24,12 +24,13 @@
#include "window.h"
#define MAX_HORIZONTAL 1
#define MAX_VERTICAL 2
#define MAX_LEFTHALF 4
#define MAX_RIGHTHALF 8
#define MAX_IGNORE_XINERAMA 16
#define MAX_KEYBOARD 32
#define MAX_HORIZONTAL (1 << 0)
#define MAX_VERTICAL (1 << 1)
#define MAX_LEFTHALF (1 << 2)
#define MAX_RIGHTHALF (1 << 3)
#define MAX_MAXIMUS (1 << 4)
#define MAX_IGNORE_XINERAMA (1 << 5)
#define MAX_KEYBOARD (1 << 6)
void wSetFocusTo(WScreen *scr, WWindow *wwin);