mouse: Handle `maximized` client like `fullscreen` ones.
There is already a way to prevent them from moving them, but the next few commits will remove it. There is no reasons to handle this differently from fullscreen clients.
This commit is contained in:
parent
c1cd968803
commit
51ddb5639e
|
@ -82,6 +82,7 @@ function mouse.client.move(c, snap, finished_cb) --luacheck: no unused args
|
||||||
|
|
||||||
if not c
|
if not c
|
||||||
or c.fullscreen
|
or c.fullscreen
|
||||||
|
or c.maximized
|
||||||
or c.type == "desktop"
|
or c.type == "desktop"
|
||||||
or c.type == "splash"
|
or c.type == "splash"
|
||||||
or c.type == "dock" then
|
or c.type == "dock" then
|
||||||
|
@ -189,6 +190,7 @@ function mouse.client.resize(c, corner, args)
|
||||||
if not c then return end
|
if not c then return end
|
||||||
|
|
||||||
if c.fullscreen
|
if c.fullscreen
|
||||||
|
or c.maximized
|
||||||
or c.type == "desktop"
|
or c.type == "desktop"
|
||||||
or c.type == "splash"
|
or c.type == "splash"
|
||||||
or c.type == "dock" then
|
or c.type == "dock" then
|
||||||
|
|
Loading…
Reference in New Issue