[Xfce4-commits] [apps/xfce4-terminal] 01/01: Attempt to fix crash under wayland session
noreply at xfce.org
noreply at xfce.org
Fri Aug 26 15:14:52 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 4734decdbd2555023ae7775cb97d8589666baa21
Author: Igor <f2404 at yandex.ru>
Date: Fri Aug 26 16:14:17 2016 +0300
Attempt to fix crash under wayland session
https://bugzilla.redhat.com/show_bug.cgi?id=1369594
---
terminal/terminal-window.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 94c87cd..720fe9a 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -419,9 +419,12 @@ terminal_window_init (TerminalWindow *window)
window->action_fullscreen = gtk_action_group_get_action (window->action_group, "fullscreen");
#if defined(GDK_WINDOWING_X11)
- /* setup fullscreen mode */
- if (!gdk_x11_screen_supports_net_wm_hint (screen, gdk_atom_intern ("_NET_WM_STATE_FULLSCREEN", FALSE)))
- gtk_action_set_sensitive (window->action_fullscreen, FALSE);
+ if (GDK_IS_X11_SCREEN (screen))
+ {
+ /* setup fullscreen mode */
+ if (!gdk_x11_screen_supports_net_wm_hint (screen, gdk_atom_intern ("_NET_WM_STATE_FULLSCREEN", FALSE)))
+ gtk_action_set_sensitive (window->action_fullscreen, FALSE);
+ }
#endif
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list