* src/xterm.c (handle_one_xevent): Restrict earlier fix of
Bug#24963 and Bug#25887 to avoid that a non-GTK Emacs won't
react to state changes received via ConfigureNotify.
#endif
if (f)
{
- /* Don't call x_net_wm_state for the scroll bar window.
- (Bug#24963, Bug#25887) */
+#ifdef USE_GTK
+ /* For GTK+ don't call x_net_wm_state for the scroll bar
+ window. (Bug#24963, Bug#25887) */
if (configureEvent.xconfigure.window == FRAME_X_WINDOW (f))
+#endif
x_net_wm_state (f, configureEvent.xconfigure.window);
#ifdef USE_X_TOOLKIT