Skip to content

Commit

Permalink
[window-title] Focus window on click and (un)maximize on double click…
Browse files Browse the repository at this point in the history
… (rebase)
  • Loading branch information
gabrielfin authored and flexiondotorg committed May 30, 2019
1 parent e4f7ee2 commit be6b2e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions window-title-applet/window-title-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ namespace WindowTitleApplet{
}

private void clicked(Gdk.EventButton *event){
if(active_window != null){
active_window->activate(Gtk.get_current_event_time());
if(window != null){
window->activate(Gtk.get_current_event_time());
if(event->type == Gdk.EventType.2BUTTON_PRESS) {
if(active_window->is_maximized())
active_window->unmaximize();
if(window->is_maximized())
window->unmaximize();
else
active_window->maximize();
window->maximize();
}
}
}
Expand Down

0 comments on commit be6b2e5

Please sign in to comment.