[gnome-panel/wip-warnings-next] panel-struts.c: remove GdkScreen comparison
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-warnings-next] panel-struts.c: remove GdkScreen comparison
- Date: Mon, 24 Feb 2020 21:01:21 +0000 (UTC)
commit 0f8836248f0cd2710715ce7e8e3190de55372a0f
Author: Sebastian Geiger <sbastig gmx net>
Date: Mon Feb 24 15:48:30 2020 +0100
panel-struts.c: remove GdkScreen comparison
Two struts should never be on different screens, since there
should only be one GdkScreen for all monitors.
gnome-panel/panel-struts.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/gnome-panel/panel-struts.c b/gnome-panel/panel-struts.c
index 709113b10..07c5dec7f 100644
--- a/gnome-panel/panel-struts.c
+++ b/gnome-panel/panel-struts.c
@@ -357,10 +357,6 @@ static int
panel_struts_compare (const PanelStrut *s1,
const PanelStrut *s2)
{
- if (s1->screen != s2->screen)
- return gdk_screen_get_number (s1->screen) -
- gdk_screen_get_number (s2->screen);
-
if (s1->monitor != s2->monitor)
return s1->monitor - s2->monitor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]