[gnome-applets/wip/segeiger/windowpicker: 15/17] windowpicker: declare variables at top



commit 0e53d47c6d25cc4edff104f5fad322eb32a90f7e
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sat Oct 12 15:30:59 2019 +0200

    windowpicker: declare variables at top

 windowpicker/src/task-list.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/windowpicker/src/task-list.c b/windowpicker/src/task-list.c
index 974187369..b8c6dbce8 100644
--- a/windowpicker/src/task-list.c
+++ b/windowpicker/src/task-list.c
@@ -315,11 +315,12 @@ window_filter_function (GdkXEvent *gdk_xevent,
       case PropertyNotify:
         {
           XPropertyEvent *propertyEvent;
+          Atom WORKAREA_ATOM;
 
           propertyEvent = (XPropertyEvent *) xevent;
 
-          const Atom WORKAREA_ATOM = XInternAtom (propertyEvent->display,
-                                                  "_NET_WORKAREA", True);
+          WORKAREA_ATOM = XInternAtom (propertyEvent->display,
+                                       "_NET_WORKAREA", True);
 
           if (propertyEvent->atom != WORKAREA_ATOM)
             return GDK_FILTER_CONTINUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]