Skip to content

Commit

Permalink
remove double check
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Sep 21, 2024
1 parent 87ed448 commit e0127df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unix/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e0127df

Please sign in to comment.