]> git.sur5r.net Git - i3/i3/blobdiff - include/handlers.h
Don’t use SYNC key bindings for Mode_switch but re-grab keys
[i3/i3] / include / handlers.h
index a56ed2825e45e797c5f597ecf4beb4fc56d34a82..03be5281f902e64ed4ed8379110ec20394bedc86 100644 (file)
@@ -3,7 +3,7 @@
  *
  * i3 - an improved dynamic tiling window manager
  *
- * (c) 2009 Michael Stapelberg and contributors
+ * © 2009-2010 Michael Stapelberg and contributors
  *
  * See file LICENSE for license information.
  *
 #ifndef _HANDLERS_H
 #define _HANDLERS_H
 
-/**
- * Due to bindings like Mode_switch + <a>, we need to bind some keys in
- * XCB_GRAB_MODE_SYNC.  Therefore, we just replay all key presses.
- *
- */
-int handle_key_release(void *ignored, xcb_connection_t *conn,
-                       xcb_key_release_event_t *event);
+#include <xcb/randr.h>
 
 /**
  * There was a key press. We compare this key code with our bindings table and
@@ -74,6 +68,14 @@ int handle_map_request(void *prophs, xcb_connection_t *conn,
  */
 int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
 
+/**
+ * Gets triggered upon a RandR screen change event, that is when the user
+ * changes the screen configuration in any way (mode, position, …)
+ *
+ */
+int handle_screen_change(void *prophs, xcb_connection_t *conn,
+                         xcb_generic_event_t *e);
+
 /**
  * Configure requests are received when the application wants to resize
  * windows on their own.
@@ -160,6 +162,13 @@ int handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t state,
                         xcb_window_t window, xcb_atom_t name,
                         xcb_get_property_reply_t *reply);
 
+/**
+ * Handles the WM_HINTS property for extracting the urgency state of the window.
+ *
+ */
+int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window,
+                  xcb_atom_t name, xcb_get_property_reply_t *reply);
+
 /**
  * Handles the transient for hints set by a window, signalizing that this
  * window is a popup window for some other window.