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:
Emmanuel Lepage Vallee 2017-02-03 18:30:09 -05:00
parent c1cd968803
commit 51ddb5639e
1 changed files with 2 additions and 0 deletions

View File

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