diff options
Diffstat (limited to 'src/core/window.c')
-rw-r--r-- | src/core/window.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/core/window.c b/src/core/window.c index d34845e8..95d49885 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -54,12 +54,6 @@ #include <X11/extensions/shape.h> #endif -#ifdef __GNUC__ -#define UNUSED_VARIABLE __attribute__ ((unused)) -#else -#define UNUSED_VARIABLE -#endif - static int destroying_windows_disallowed = 0; @@ -5348,12 +5342,11 @@ meta_window_client_message (MetaWindow *window, else if (event->xclient.message_type == display->atom__NET_MOVERESIZE_WINDOW) { - int gravity, UNUSED_VARIABLE source; + int gravity; guint value_mask; gravity = (event->xclient.data.l[0] & 0xff); value_mask = (event->xclient.data.l[0] & 0xf00) >> 8; - source = (event->xclient.data.l[0] & 0xf000) >> 12; if (gravity == 0) gravity = window->size_hints.win_gravity; @@ -5396,7 +5389,6 @@ meta_window_client_message (MetaWindow *window, else if (event->xclient.message_type == display->atom__NET_WM_FULLSCREEN_MONITORS) { - MetaClientType UNUSED_VARIABLE source_indication; gulong top, bottom, left, right; meta_verbose ("_NET_WM_FULLSCREEN_MONITORS request for window '%s'\n", @@ -5406,7 +5398,7 @@ meta_window_client_message (MetaWindow *window, bottom = event->xclient.data.l[1]; left = event->xclient.data.l[2]; right = event->xclient.data.l[3]; - source_indication = event->xclient.data.l[4]; + /* source_indication = event->xclient.data.l[4]; */ meta_window_update_fullscreen_monitors (window, top, bottom, left, right); } @@ -5607,8 +5599,6 @@ static gboolean process_property_notify (MetaWindow *window, XPropertyEvent *event) { - Window UNUSED_VARIABLE xid = window->xwindow; - if (meta_is_verbose ()) /* avoid looking up the name if we don't have to */ { char *property_name = XGetAtomName (window->display->xdisplay, @@ -5619,12 +5609,6 @@ process_property_notify (MetaWindow *window, XFree (property_name); } - if (event->atom == window->display->atom__NET_WM_USER_TIME && - window->user_time_window) - { - xid = window->user_time_window; - } - meta_window_reload_property (window, event->atom, FALSE); return TRUE; @@ -6849,7 +6833,6 @@ meta_window_titlebar_is_onscreen (MetaWindow *window) { MetaRectangle titlebar_rect; GList *onscreen_region; - int UNUSED_VARIABLE titlebar_size; gboolean is_onscreen; const int min_height_needed = 8; @@ -6863,7 +6846,6 @@ meta_window_titlebar_is_onscreen (MetaWindow *window) /* Get the rectangle corresponding to the titlebar */ meta_window_get_outer_rect (window, &titlebar_rect); titlebar_rect.height = window->frame->child_y; - titlebar_size = meta_rectangle_area (&titlebar_rect); /* Run through the spanning rectangles for the screen and see if one of * them overlaps with the titlebar sufficiently to consider it onscreen. |