Skip to content

Commit

Permalink
Fix loosing focus while moving windows
Browse files Browse the repository at this point in the history
Windows which can't get focus (FALSE passed to gtk_window_set_accept_focus()) can grab it from active window while moving them. This behavior causes bugs in programs which use focus-in-event and focus-out-event combined with dialogs.
  • Loading branch information
9fcc committed Apr 13, 2018
1 parent 9e8813e commit a24e343
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions openbox/moveresize.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
/* keep the pointer bounded to the screen for move/resize */
if (!grab_pointer(FALSE, TRUE, cur))
return;
if (!grab_keyboard()) {
ungrab_pointer();
return;
}

frame_end_iconify_animation(c->frame);

Expand Down Expand Up @@ -311,7 +307,6 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)

void moveresize_end(gboolean cancel)
{
ungrab_keyboard();
ungrab_pointer();

popup_hide(popup);
Expand Down

0 comments on commit a24e343

Please sign in to comment.