[Xfce4-commits] [xfce/xfwm4] 01/01: Do not prevent ALT+Mouse resizing for borderless maximized windows.
noreply at xfce.org
noreply at xfce.org
Mon Jun 12 09:37:47 CEST 2017
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit aee8b25a522d84e2453ed4049a018ca17a6b9525
Author: Marcel Partap <mpartap at gmx.net>
Date: Sun May 7 11:36:14 2017 +0200
Do not prevent ALT+Mouse resizing for borderless maximized windows.
---
src/client.c | 6 ++----
src/moveresize.c | 10 +---------
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/src/client.c b/src/client.c
index a0f7fa9..4085e75 100644
--- a/src/client.c
+++ b/src/client.c
@@ -873,11 +873,9 @@ clientMoveResizeWindow (Client *c, XWindowChanges * wc, unsigned long mask)
/* Ignore stacking request for DESKTOP windows */
mask &= ~(CWSibling | CWStackMode);
}
- if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN)
- || (FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED)
- && (screen_info->params->borderless_maximize)))
+ if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
{
- /* Not allowed in fullscreen or maximzed mode */
+ /* Not allowed in fullscreen mode */
mask &= ~(CWX | CWY | CWWidth | CWHeight);
}
/*clean up buggy requests that set all flags */
diff --git a/src/moveresize.c b/src/moveresize.c
index 1c07e8e..f9f02bd 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -100,9 +100,7 @@ clientCheckSize (Client * c, int size, int base, int min, int max, int incr, gbo
size_return = size;
/* Bypass resize increment and max sizes for fullscreen */
- if (!FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN)
- && !(FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED)
- && (c->screen_info->params->borderless_maximize)))
+ if (!FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
{
if (!source_is_application && (c->size->flags & PResizeInc) && (incr))
@@ -1732,12 +1730,6 @@ clientResize (Client * c, int handle, XEvent * ev)
screen_info = c->screen_info;
display_info = screen_info->display_info;
- if (FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED)
- && (screen_info->params->borderless_maximize))
- {
- return;
- }
-
TRACE ("resizing client \"%s\" (0x%lx)", c->name, c->window);
passdata.c = c;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list