[Xfce4-commits] [xfce/xfwm4] 01/01: Fix fullscreen mode not working correctly for QT apps (bug #8563)
noreply at xfce.org
noreply at xfce.org
Tue Dec 9 17:24:25 CET 2014
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository xfce/xfwm4.
commit cf82188eb5a841e8be34fa7ce67933ca15eba7fa
Author: Viktor Semykin <thesame.ml at gmail.com>
Date: Tue Dec 9 17:21:05 2014 +0100
Fix fullscreen mode not working correctly for QT apps (bug #8563)
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
src/client.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/client.c b/src/client.c
index 8f19d7b..748426f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -981,8 +981,12 @@ clientGetMWMHints (Client *c, gboolean update)
wc.width = c->width;
wc.height = c->height;
+ if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
+ {
+ clientUpdateFullscreenSize (c);
+ }
/* If client is maximized, we need to update its coordonates and size as well */
- if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
+ else if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
{
GdkRectangle rect;
myScreenFindMonitorAtPoint (screen_info,
@@ -3543,8 +3547,12 @@ clientScreenResize(ScreenInfo *screen_info, gboolean fully_visible)
continue;
}
+ if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
+ {
+ clientUpdateFullscreenSize (c);
+ }
/* Recompute size and position of maximized windows */
- if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
+ else if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
{
maximization_flags = c->flags & CLIENT_FLAG_MAXIMIZED;
@@ -3558,10 +3566,6 @@ clientScreenResize(ScreenInfo *screen_info, gboolean fully_visible)
wc.height = c->height;
clientConfigure (c, &wc, CWX | CWY | CWWidth | CWHeight, CFG_NOTIFY);
}
- else if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
- {
- clientUpdateFullscreenSize (c);
- }
else
{
configure_flags = CFG_CONSTRAINED | CFG_REQUEST;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list