From: Yves Fischer Date: Thu, 22 Sep 2011 20:22:37 +0000 (+0200) Subject: Skip dragging of floating cons in fullscreen mode X-Git-Tag: 4.1~140^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c367f9e4c67b77420b98a93b5d0e7ab08e695af;p=i3%2Fi3 Skip dragging of floating cons in fullscreen mode --- diff --git a/src/click.c b/src/click.c index acfcad89..c270bdec 100644 --- a/src/click.c +++ b/src/click.c @@ -178,8 +178,11 @@ static int route_click(Con *con, xcb_button_press_event_t *event, bool mod_press /* 2: focus this con */ con_focus(con); - /* 3: for floating containers, we also want to raise them on click */ - if (floatingcon != NULL) { + /* 3: For floating containers, we also want to raise them on click. + * We will skip handling events on floating cons in fullscreen mode */ + Con *ws = con_get_workspace(con); + Con *fs = (ws ? con_get_fullscreen_con(ws, CF_OUTPUT) : NULL); + if (floatingcon != NULL && fs == NULL) { floating_raise_con(floatingcon); /* 4: floating_modifier plus left mouse button drags */