diff --git a/action.c b/action.c index d30b013..42c96df 100644 --- a/action.c +++ b/action.c @@ -112,11 +112,3 @@ void action_fullscreen(void *data, int num, client *cli) client_update_border(cli); client_raise_family(cli); } - -void action_above(void *data, int num, client *cli) -{ - if (!cli) return; - client_toggle_state(cli, atoms[_NET_WM_STATE_ABOVE]); - client_update_border(cli); - client_raise_family(cli); -} diff --git a/atom.c b/atom.c index c1a0f20..ce1b3ea 100644 --- a/atom.c +++ b/atom.c @@ -49,7 +49,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. X(_NET_WM_WINDOW_TYPE_DIALOG),\ X(_NET_WM_STATE),\ X(_NET_WM_STATE_FULLSCREEN),\ - X(_NET_WM_STATE_ABOVE),\ X(_NET_WM_STATE_DEMANDS_ATTENTION),\ X(WM_NAME),\ X(WM_DELETE_WINDOW),\ diff --git a/client.c b/client.c index c44f8bd..6aec31e 100644 --- a/client.c +++ b/client.c @@ -46,7 +46,6 @@ int client_toggle_state(client *c, Atom state) } SETPROP_ATOM(c->window, atoms[_NET_WM_STATE], c->states, j); if (state == atoms[_NET_WM_STATE_FULLSCREEN]) c->full = rc; - if (state == atoms[_NET_WM_STATE_ABOVE]) c->above = rc; if (state == atoms[_NET_WM_STATE_DEMANDS_ATTENTION]) c->urgent = rc; return rc; } @@ -95,7 +94,6 @@ client* window_build_client(Window win) memset(c->states, 0, sizeof(Atom) * ATOMLIST); c->urgent = client_has_state(c, atoms[_NET_WM_STATE_DEMANDS_ATTENTION]); c->full = client_has_state(c, atoms[_NET_WM_STATE_FULLSCREEN]); - c->above = client_has_state(c, atoms[_NET_WM_STATE_ABOVE]); if ((hints = XGetWMHints(display, c->window))) { @@ -126,7 +124,7 @@ void client_free(client *c) void client_update_border(client *c) { XColor color; Colormap map = DefaultColormap(display, DefaultScreen(display)); - char *colorname = c->window == current ? BORDER_FOCUS: (c->urgent ? BORDER_URGENT: (c->above ? BORDER_ABOVE: BORDER_BLUR)); + char *colorname = c->window == current ? BORDER_FOCUS: (c->urgent ? BORDER_URGENT: BORDER_BLUR); XSetWindowBorder(display, c->window, XAllocNamedColor(display, map, colorname, &color, &color) ? color.pixel: None); XSetWindowBorderWidth(display, c->window, c->full ? 0: BORDER); } @@ -240,10 +238,6 @@ void client_raise_family(client *c) for_windows(i, o) if (o->type == atoms[_NET_WM_WINDOW_TYPE_DOCK]) client_stack_family(o, &raise); - // above only counts for fullscreen windows - if (c->full) for_windows(i, o) if (o->above) - client_stack_family(o, &raise); - while (c->transient && (o = window_build_client(c->transient))) c = family.clients[family.depth++] = o; diff --git a/config.h b/config.h index 615b306..994d52a 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,6 @@ #define BORDER_BLUR "Dark Gray" #define BORDER_FOCUS "Royal Blue" #define BORDER_URGENT "Red" -#define BORDER_ABOVE "Dark Green" #define GAP 2 // Title bar xft font @@ -77,9 +76,6 @@ // action_move_monitor // action_focus_monitor // action_fullscreen -// action_above -// action_snapshot -// action_rollback // If you use "AnyModifier" place those keys at the end of the array. binding keys[] = { @@ -119,9 +115,6 @@ binding keys[] = { // Toggle current window full screen. { .mod = Mod4Mask, .key = XK_f, .act = action_fullscreen }, - // Toggle current window above. - { .mod = Mod4Mask, .key = XK_a, .act = action_above }, - // Switch focus between monitors. { .mod = Mod4Mask, .key = XK_Next, .act = action_focus_monitor, .num = +1 }, { .mod = Mod4Mask, .key = XK_Prior, .act = action_focus_monitor, .num = -1 }, diff --git a/xoat.1 b/xoat.1 index befba7a..757940e 100644 --- a/xoat.1 +++ b/xoat.1 @@ -72,11 +72,6 @@ While in fullscreen mode, an window is considered to be in tile 1. .RS .RE .TP -.B Mod4-a -Toggle state above (only placed above fullscreen windows). -.RS -.RE -.TP .B Mod4-Next (Page Down) Focus next monitor. .RS @@ -106,18 +101,6 @@ Launch dmenu_run Launch urxvt .RS .RE -.TP -.B Mod4-s -Snapshot current window positions and stacking order. -.RS -.RE -.TP -.B Mod4-r -Rollback to snapshot. -Windows closed since the snapshot will not be reopened. -Newer windows not in the snapshot will be lowered. -.RS -.RE .SH OPTIONS .PP All configuration is done via config.h. diff --git a/xoat.c b/xoat.c index 25afc4b..db0841c 100644 --- a/xoat.c +++ b/xoat.c @@ -77,7 +77,7 @@ typedef struct { XWindowAttributes attr; Window transient, leader; Atom type, states[ATOMLIST+1]; - short monitor, visible, manage, input, urgent, full, above, ours; + short monitor, visible, manage, input, urgent, full, ours; unsigned long spot; char *class; } client; diff --git a/xoat.md b/xoat.md index d995153..64ffa3c 100644 --- a/xoat.md +++ b/xoat.md @@ -53,9 +53,6 @@ Mod4-Escape Mod4-f : Toggle state fullscreen. While in fullscreen mode, an window is considered to be in tile 1. -Mod4-a -: Toggle state above (only placed above fullscreen windows). - Mod4-Next (Page Down) : Focus next monitor. @@ -74,12 +71,6 @@ Shift-Mod4-x F1 : Launch urxvt -Mod4-s -: Snapshot current window positions and stacking order. - -Mod4-r -: Rollback to snapshot. Windows closed since the snapshot will not be reopened. Newer windows not in the snapshot will be lowered. - # OPTIONS All configuration is done via config.h.