summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-11-15 19:21:34 +0100
committerPablo Barciela <[email protected]>2017-11-15 19:42:25 +0100
commit35c76d40df1c292feff0f1b35275402dcd7304f7 (patch)
tree6e54aca35fc35fa4eda53d5e2329768448acea6c
parent533a334f68009c07e2a09d0618926725bbf207ef (diff)
downloadpluma-35c76d40df1c292feff0f1b35275402dcd7304f7.tar.bz2
pluma-35c76d40df1c292feff0f1b35275402dcd7304f7.tar.xz
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.c19
1 files changed, 0 insertions, 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)