From 35c76d40df1c292feff0f1b35275402dcd7304f7 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 15 Nov 2017 19:21:34 +0100 Subject: make sure pluma open in the same window of the workspace there is only one screen, this code can be removed Fixes https://github.com/mate-desktop/pluma/issues/261 --- pluma/pluma-app.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c index dd1b899f..409547ae 100644 --- a/pluma/pluma-app.c +++ b/pluma/pluma-app.c @@ -635,31 +635,12 @@ is_in_viewport (PlumaWindow *window, gint viewport_x, gint viewport_y) { - GdkScreen *s; - GdkDisplay *display; GdkWindow *gdkwindow; - const gchar *cur_name; - const gchar *name; - gint cur_n; - gint n; gint ws; gint sc_width, sc_height; gint x, y, width, height; gint vp_x, vp_y; - /* Check for screen and display match */ - display = gdk_screen_get_display (screen); - cur_name = gdk_display_get_name (display); - cur_n = gdk_x11_screen_get_screen_number (screen); - - s = gtk_window_get_screen (GTK_WINDOW (window)); - display = gdk_screen_get_display (s); - name = gdk_display_get_name (display); - n = gdk_x11_screen_get_screen_number (s); - - if (strcmp (cur_name, name) != 0 || cur_n != n) - return FALSE; - /* Check for workspace match */ ws = pluma_utils_get_window_workspace (GTK_WINDOW (window)); if (ws != workspace && ws != PLUMA_ALL_WORKSPACES) -- cgit v1.2.1