Introduce con_get_fullscreen_covering_ws
This commit will also fix the following bugs: 1. click.c: Users could drag global fullscreen floating containers. 2. render.c: Floating containers would get rendered with a global fullscreen container in another workspace.
This commit is contained in:
@ -310,16 +310,8 @@ static void handle_configure_request(xcb_configure_request_event_t *event) {
|
||||
|
||||
DLOG("Configure request!\n");
|
||||
|
||||
Con *workspace = con_get_workspace(con),
|
||||
*fullscreen = NULL;
|
||||
|
||||
/* There might not be a corresponding workspace for dock cons, therefore we
|
||||
* have to be careful here. */
|
||||
if (workspace) {
|
||||
fullscreen = con_get_fullscreen_con(workspace, CF_OUTPUT);
|
||||
if (!fullscreen)
|
||||
fullscreen = con_get_fullscreen_con(workspace, CF_GLOBAL);
|
||||
}
|
||||
Con *workspace = con_get_workspace(con);
|
||||
Con *fullscreen = con_get_fullscreen_covering_ws(workspace);
|
||||
|
||||
if (fullscreen != con && con_is_floating(con) && con_is_leaf(con)) {
|
||||
/* find the height for the decorations */
|
||||
|
Reference in New Issue
Block a user