[gnome-applets/wip/segeiger/windowpicker: 15/15] windowpicker: declare variables at top
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 15/15] windowpicker: declare variables at top
- Date: Sun, 13 Oct 2019 12:19:11 +0000 (UTC)
commit 8cc72fdf96b932796193cd3ae1128b90cc475f60
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 ac2d657d3..56b9ce24b 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]