blob: 26758605edcea6771275b5c5fbe5da2e624fc61f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
diff -uraN pluma-1.16.2/pluma/pluma-app.c pluma-1.16.2-samewindow/pluma/pluma-app.c
--- pluma-1.16.2/pluma/pluma-app.c 2017-04-19 11:47:01.000000000 +0200
+++ pluma-1.16.2-samewindow/pluma/pluma-app.c 2020-10-14 08:07:56.247122021 +0200
@@ -634,31 +634,12 @@
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)
|