From 325f115c09bba88ad8fd648ce944ae0a9dead56c Mon Sep 17 00:00:00 2001 From: Raphael Khaiat Date: Tue, 15 Feb 2011 19:10:10 +0100 Subject: [PATCH] Add feature for raising tile client over free client when selected. Feature requested by bacardi55 :) --- src/client.c | 3 ++- src/config.c | 1 + src/structs.h | 1 + wmfsrc | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 40ee9ec..e3f755f 100644 --- a/src/client.c +++ b/src/client.c @@ -1190,7 +1190,8 @@ client_update_attributes(Client *c) void client_raise(Client *c) { - if(!c || ((c->flags & TileFlag) && !(c->flags & AboveFlag))) + if((!c || ((c->flags & TileFlag) && !(c->flags & AboveFlag))) + && !conf.client_tile_raise) return; XRaiseWindow(dpy, c->frame); diff --git a/src/config.c b/src/config.c index 958724d..14d4a69 100644 --- a/src/config.c +++ b/src/config.c @@ -281,6 +281,7 @@ conf_client_section(void) conf.client_round = fetch_opt_first(sec, "true", "client_round").bool; conf.client_auto_center = fetch_opt_first(sec, "false", "client_auto_center").bool; + conf.client_tile_raise = fetch_opt_first(sec, "false", "client_tile_raise").bool; if ((conf.client.borderheight = fetch_opt_first(sec, "1", "border_height").num) < 1) conf.client.borderheight = 1; diff --git a/src/structs.h b/src/structs.h index 78fb7cc..c86bbd0 100644 --- a/src/structs.h +++ b/src/structs.h @@ -489,6 +489,7 @@ typedef struct Bool tag_auto_prev; Bool client_round; Bool client_auto_center; + Bool client_tile_raise; Bool layout_system; /* Switch: False, Menu: True. */ Bool layout_placement; /* Right (normal): False, Left: True. */ Bool keep_layout_geo; diff --git a/wmfsrc b/wmfsrc index 8377050..de71ce6 100644 --- a/wmfsrc +++ b/wmfsrc @@ -175,6 +175,7 @@ resize_corner_normal = "#191919" resize_corner_focus = "#003366" set_new_win_master = true + client_tile_raise = false # send all client that have no tag rule in this default tag #default_open_tag = 4