Skip to content

Commit

Permalink
add client-side shortcut for toggling fullscreen mode
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@16209 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 6, 2017
1 parent 5feffa7 commit 2025098
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xpra/client/gtk_base/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,13 @@ def toggle_pointer_grab(self):
else:
self.pointer_grab()

def toggle_fullscreen(self):
geomlog("toggle_fullscreen()")
if self._fullscreen:
self.unfullscreen()
else:
self.fullscreen()


def set_menu(self, menu):
menulog("set_menu(%s)", menu)
Expand Down
1 change: 1 addition & 0 deletions src/xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ def get_default_key_shortcuts():
return [shortcut for e,shortcut in [
(True, "Control+Menu:toggle_keyboard_grab"),
(True, "Shift+Menu:toggle_pointer_grab"),
(True, "Shift+F11:toggle_fullscreen"),
(True, "Meta+Shift+F1:show_menu"),
(True, "Meta+Shift+F2:show_start_new_command"),
(True, "Meta+Shift+F3:show_bug_report"),
Expand Down

0 comments on commit 2025098

Please sign in to comment.