diff --git a/unix/window.c b/unix/window.c index 968e487e..a61025dd 100644 --- a/unix/window.c +++ b/unix/window.c @@ -1609,9 +1609,9 @@ apc_window_execute( Handle self, Handle insert_before) while ( prima_one_loop_round( WAIT_IF_NONE, true) && XX-> flags.modal) ; - if ( PObject(self)->stage == csNormal ) { + if ( X_WINDOW ) { if ( toplevel) XSetTransientForHint( DISP, X_WINDOW, None); - if ( X_WINDOW) NETWM_SET_MODAL( X_WINDOW, XX-> flags.modal); + NETWM_SET_MODAL( X_WINDOW, XX-> flags.modal); } unprotect_object( self);