[gnome-panel/wip-warnings: 4/6] panel-struts.c: remove GdkScreen comparison
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-warnings: 4/6] panel-struts.c: remove GdkScreen comparison
- Date: Mon, 24 Feb 2020 15:10:00 +0000 (UTC)
commit 4e8657dab33d8f3c5763e94aea64757d61b8e4c9
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 9ceb8077d..834d1370d 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]