summaryrefslogtreecommitdiff
path: root/applets/wncklet/window-list.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-07-27 14:08:09 -0400
committerVictor Kareh <[email protected]>2018-07-27 14:08:09 -0400
commit31930d0b39b3bf26bcc53b2c20e61ecd4779f397 (patch)
tree4a733572dc3119f7e65c6e7e369c087d7b4e337d /applets/wncklet/window-list.c
parent139f1837cea61ddf9971c3f7f1530de9247121d3 (diff)
downloadmate-panel-31930d0b39b3bf26bcc53b2c20e61ecd4779f397.tar.bz2
mate-panel-31930d0b39b3bf26bcc53b2c20e61ecd4779f397.tar.xz
applets: Guard against GTK scale-factor fixes on GtkSocket
Diffstat (limited to 'applets/wncklet/window-list.c')
-rw-r--r--applets/wncklet/window-list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index f6055e43..35b87c74 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -42,7 +42,7 @@ typedef struct {
GtkOrientation orientation;
int size;
-#ifndef WNCKLET_INPROCESS
+#if !defined(WNCKLET_INPROCESS) && !GTK_CHECK_VERSION (3, 22, 31)
gboolean needs_hints;
#endif
@@ -322,7 +322,7 @@ static void applet_size_allocate(GtkWidget *widget, GtkAllocation *allocation, T
g_assert(len % 2 == 0);
-#ifndef WNCKLET_INPROCESS
+#if !defined(WNCKLET_INPROCESS) && !GTK_CHECK_VERSION (3, 22, 31)
/* HACK: When loading the WnckTasklist initially, it reports size hints as though there were
* no elements in the Tasklist. This causes a rendering issue when built out-of-process in
* HiDPI displays. We keep a flag to skip size hinting until WnckTasklist has something to
@@ -427,7 +427,7 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
tasklist->size = mate_panel_applet_get_size(applet);
-#ifndef WNCKLET_INPROCESS
+#if !defined(WNCKLET_INPROCESS) && !GTK_CHECK_VERSION (3, 22, 31)
tasklist->needs_hints = FALSE;
#endif