diff options
| author | Pablo Barciela <[email protected]> | 2017-11-23 00:14:39 +0100 |
|---|---|---|
| committer | Pablo Barciela <[email protected]> | 2017-11-23 00:24:07 +0100 |
| commit | 93490df7b3994a94ccffabba9ea72e67dbb48844 (patch) | |
| tree | ae55d2d60cb169faa4c17e5842968d2f596812fc | |
| parent | b59fec61793d63652187ada3c343345d593c97f1 (diff) | |
| download | pluma-93490df7b3994a94ccffabba9ea72e67dbb48844.tar.bz2 pluma-93490df7b3994a94ccffabba9ea72e67dbb48844.tar.xz | |
[1.18] 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
| -rw-r--r-- | pluma/pluma-app.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c index 90ed1b64..ebf962d6 100644 --- a/pluma/pluma-app.c +++ b/pluma/pluma-app.c @@ -634,31 +634,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_screen_get_number (screen); - - s = gtk_window_get_screen (GTK_WINDOW (window)); - display = gdk_screen_get_display (s); - name = gdk_display_get_name (display); - n = gdk_screen_get_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) |
