self->focus_notify = TRUE;
#ifdef SYNC
else if (proto[i] == prop_atoms.net_wm_sync_request)
- /* if this protocol is requested, then the resizing the
+ /* if this protocol is requested, then resizing the
window will be synchronized between the frame and the
client */
self->sync_request = TRUE;
extensions_xkb =
XkbQueryExtension(ob_display, &junk, &extensions_xkb_event_basep,
&junk, NULL, NULL);
+ if (!extensions_xkb)
+ ob_debug("XKB extension is not present on the server\n");
#endif
#ifdef SHAPE
extensions_shape =
XShapeQueryExtension(ob_display, &extensions_shape_event_basep,
&junk);
+ if (!extensions_shape)
+ ob_debug("X Shape extension is not present on the server\n");
#endif
#ifdef XINERAMA
extensions_xinerama =
XineramaQueryExtension(ob_display, &extensions_xinerama_event_basep,
&junk) && XineramaIsActive(ob_display);
+ if (!extensions_xinerama)
+ ob_debug("Xinerama extension is not present on the server\n");
#endif
#ifdef XRANDR
extensions_randr =
XRRQueryExtension(ob_display, &extensions_randr_event_basep,
&junk);
+ if (!extensions_randr)
+ ob_debug("XRandR extension is not present on the server\n");
#endif
#ifdef SYNC
XSyncInitialize(ob_display, &junk, &junk);
if (!extensions_sync)
ob_debug("X Sync extension is not present on the server or is an "
- "incompatible version");
+ "incompatible version\n");
#endif
}
g_assert_not_reached();
#ifdef SYNC
- if (!moving && extensions_shape && moveresize_client->sync_request &&
- moveresize_client->sync_counter)
+ if (config_resize_redraw && !moving && extensions_shape &&
+ moveresize_client->sync_request && moveresize_client->sync_counter)
{
/* Initialize values for the resize syncing, and create an alarm for
the client's xsync counter */
static void do_resize()
{
-#ifdef SYNC
gint x, y, w, h, lw, lh;
/* see if it is actually going to resize */
return;
}
- if (extensions_sync && moveresize_client->sync_request &&
- moveresize_client->sync_counter)
+#ifdef SYNC
+ if (config_resize_redraw && extensions_sync &&
+ moveresize_client->sync_request && moveresize_client->sync_counter)
{
XEvent ce;
XSyncValue val;
CREATE(net_wm_action_resize, "_NET_WM_ACTION_RESIZE");
CREATE(net_wm_action_minimize, "_NET_WM_ACTION_MINIMIZE");
CREATE(net_wm_action_shade, "_NET_WM_ACTION_SHADE");
- CREATE(net_wm_action_stick, "_NET_WM_ACTION_STICK");
CREATE(net_wm_action_maximize_horz, "_NET_WM_ACTION_MAXIMIZE_HORZ");
CREATE(net_wm_action_maximize_vert, "_NET_WM_ACTION_MAXIMIZE_VERT");
CREATE(net_wm_action_fullscreen, "_NET_WM_ACTION_FULLSCREEN");
Atom net_wm_action_resize;
Atom net_wm_action_minimize;
Atom net_wm_action_shade;
- Atom net_wm_action_stick;
Atom net_wm_action_maximize_horz;
Atom net_wm_action_maximize_vert;
Atom net_wm_action_fullscreen;