aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-18 22:19:13 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:09:14 (GMT)
commit9be77ee91b8e4713fa10385ce19fb62f42f2b60b (patch)
tree15554723c3f676240811e38f0d032142cb895097
parentf8f6be62f5785515979c4dc702de9d838fe0c756 (diff)
Remember our XSizeHints structure
Remember our XSizeHints structure so we don't destroy all our hints next time we try to update it Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--src/xcommon.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xcommon.c b/src/xcommon.c
index 7448fe7..ace0cef 100644
--- a/src/xcommon.c
+++ b/src/xcommon.c
@@ -66,6 +66,7 @@ static int screen;
static Window wm_window;
static Window fs_window;
static Window output_window;
+static XSizeHints hint;
static GC gc;
static int have_xss;
static int output_width, output_height;
@@ -340,10 +341,9 @@ static int xv_get_height_for_width( int window_width )
static void x11_northwest_gravity( Display *dpy, Window win )
{
- XSizeHints hints;
- hints.flags = PWinGravity;
- hints.win_gravity = NorthWestGravity;
- XSetWMNormalHints( dpy, win, &hints );
+ hint.flags |= PWinGravity;
+ hint.win_gravity = NorthWestGravity;
+ XSetWMNormalHints( dpy, win, &hint );
}
static void x11_grab_fullscreen_input( Display *dpy, Window win )
@@ -824,7 +824,6 @@ int xcommon_open_display( const char *user_geometry, int aspect, int verbose )
{
Pixmap curs_pix;
XEvent xev;
- XSizeHints hint;
XClassHint classhint;
XColor curs_col = { 0 };
XSetWindowAttributes xswa;

Privacy Policy