~noskcaj/ubuntu/vivid/xfwm4/4.11.3

« back to all changes in this revision

Viewing changes to debian/patches/03-restore-original-window-size-after-untiling.patch

  • Committer: Package Import Robot
  • Author(s): Thaddäus Tintenfisch
  • Date: 2014-04-11 22:17:59 UTC
  • Revision ID: package-import@ubuntu.com-20140411221759-19djxrurkokn5zxv
Tags: 4.11.1-2ubuntu3
Restore original window size after untiling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Thaddaeus Tintenfisch <thad.fisch@gmail.com>
 
2
Description: Restore original window size after untiling
 
3
Bug: https://bugzilla.xfce.org/show_bug.cgi?id=8765
 
4
 
 
5
---
 
6
 src/client.c | 6 +-----
 
7
 1 file changed, 1 insertion(+), 5 deletions(-)
 
8
 
 
9
--- a/src/client.c
 
10
+++ b/src/client.c
 
11
@@ -1459,14 +1459,10 @@ clientSaveSizePos (Client *c)
 
12
 {
 
13
     g_return_if_fail (c != NULL);
 
14
 
 
15
-    if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ))
 
16
+    if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ) && !FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_VERT))
 
17
     {
 
18
         c->old_x = c->x;
 
19
         c->old_width = c->width;
 
20
-    }
 
21
-
 
22
-    if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_VERT))
 
23
-    {
 
24
         c->old_y = c->y;
 
25
         c->old_height = c->height;
 
26
     }