Skip to content

Commit

Permalink
Merge pull request #15 from idealist1508/bugfix_i3_focus_to_other_des…
Browse files Browse the repository at this point in the history
…ktop

WA for i3 bug
  • Loading branch information
soulthreads committed Jul 30, 2014
2 parents b5ee7de + f125867 commit 2d6c91d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,16 +431,19 @@ static void draw_mosaic (GtkLayout *where,
static void on_rect_click (GtkWidget *widget, gpointer data)
{
MosaicWindowBox *box = MOSAIC_WINDOW_BOX (widget);
Window win_to_switch;
if (!options.read_stdin) {
Window win = mosaic_window_box_get_xwindow (box);
switch_to_window (win);
win_to_switch = mosaic_window_box_get_xwindow (box);
} else {
puts (mosaic_window_box_get_name (box));
}
if (options.persistent)
gtk_widget_hide (window);
else
gtk_widget_hide (window);
if (!options.read_stdin) {
switch_to_window (win_to_switch);
}
if (!options.persistent) {
gtk_main_quit ();
}
}

static void update_box_list ()
Expand Down

0 comments on commit 2d6c91d

Please sign in to comment.