Add feature for raising tile client over free client when selected.

Feature requested by bacardi55 :)
This commit is contained in:
Raphael Khaiat 2011-02-15 19:10:10 +01:00
parent 3cc68b6872
commit 325f115c09
4 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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;

1
wmfsrc
View File

@ -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