summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h100
1 files changed, 33 insertions, 67 deletions
diff --git a/src/utils.h b/src/utils.h
index 1c64ad1..e71a73c 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -3,10 +3,9 @@
*
* Copyright (c) 2006 Dennis Kasprzyk <onestone@beryl-project.org>
* Copyright (c) 2006 Volker Krause <vkrause@kde.org>
+ * Copyright (c) 2006 David Reveman <davidr@novell.com>
*
* Uses code of:
- * Emerald window decorator (www.beryl-project.org)
- * gtk-window-decorator (www.freedesktop.org/wiki/Software/Compiz)
* KWin window manager (www.kde.org)
*
* This program is free software; you can redistribute it and/or modify
@@ -23,86 +22,53 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- */
+// */
-
-#ifndef AQUAMARINE_UTILS_H
-#define AQUAMARINE_UTILS_H
+#ifndef _UTILS_H
+#define _UTILS_H
#include <X11/Xlib.h>
#include <fixx11h.h>
-
#include <qwidget.h>
namespace Aquamarine
{
namespace Atoms
{
- extern Atom select_window;
-
- extern Atom manager;
- extern Atom targets;
- extern Atom multiple;
- extern Atom timestamp;
- extern Atom version;
- extern Atom atom_pair;
-
- extern Atom opacity;
- extern Atom saturation;
- extern Atom brightness;
-
- extern Atom utf8_string;
-
- extern Atom dm_name;
- extern Atom dm_sn;
-
- extern Atom net_frame_window;
- extern Atom net_window_decor;
- extern Atom net_window_decor_sync;
- extern Atom net_wm_moveresize;
- extern Atom net_active_window;
-
- extern Atom wm_delete_window;
- extern Atom wm_take_focus;
- extern Atom net_wm_context_help;
- extern Atom net_wm_ping;
- extern Atom net_wm_take_activity;
- extern Atom wm_protocols;
-
- extern Atom net_desktop_viewport;
- extern Atom net_desktop_geometry;
-
- extern Atom wm_name;
- extern Atom wm_sn;
-
- extern Atom change_frame_window;
-
+ extern Atom switchSelectWindow;
+ extern Atom netFrameWindow;
+ extern Atom netWindowDecor;
+ extern Atom netWindowDecorNormal;
+ extern Atom netWindowDecorActive;
+ extern Atom netWindowDecorBare;
+ extern Atom wmTakeFocus;
+ extern Atom netWmContextHelp;
+ extern Atom wmProtocols;
extern Atom toolkitActionAtom;
extern Atom toolkitActionWindowMenuAtom;
extern Atom toolkitActionMainMenuAtom;
extern Atom toolkitActionRunDialogAtom;
extern Atom toolkitActionForceQuitDialogAtom;
-
- void init ();
- }
-
- extern WId dm_window;
-
- void trapXError (void);
- int popXError (void);
- bool eventFilter (void *message, long *result);
- void *readXProperty (WId window, Atom property, Atom type, int *items);
- bool readWindowProperty (long wId, long property, long *value);
- bool acquireDmSession (Display * xdisplay, int screen, bool replace);
- void set_dm_check_hint (int screen);
- bool convertProperty (WId w, Atom target, Atom property);
- void handleSelectionRequest (XEvent * event);
-
- unsigned short readWindowPropertyDefault (WId id, Atom property,
- unsigned short defaultValue);
- void setWindowProperty (WId id, Atom property, unsigned short value);
-
- bool validWindow (WId id);
+ extern Atom wmSn;
+ extern Atom wmName;
+ extern Atom netDesktopViewport;
+ extern Atom netDesktopGeometry;
+
+ extern Atom netWmWindowOpacity;
+ extern Atom netWmWindowSaturation;
+ extern Atom netWmWindowBrightness;
+
+ void init (void);
+ }
+
+ void trapXError (void);
+ int popXError (void);
+ bool eventFilter (void *message, long *result);
+ void *readXProperty (WId window, Atom property, Atom type, int *items);
+ bool readWindowProperty (long wId, long property, long *value);
+ unsigned short readPropertyShort (WId id,
+ Atom property,
+ unsigned short defaultValue);
}
#endif