X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.cc;h=9ab8ed2f0b898ab2e8c23aee9e895d8db4120a6f;hb=e451c08ac5a103362adbece9b8a11a16ade739c1;hp=cf4e22e33face83d08e9b8c15247a291ad9b6d25;hpb=dec0760d87f12b1c855a5e7ad9b9713e749314fc;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index cf4e22e3..9ab8ed2f 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" #include "display.hh" #include "screeninfo.hh" @@ -24,10 +22,6 @@ extern "C" { #include #endif // XINERAMA -#ifdef HAVE_STDIO_H -# include -#endif // HAVE_STDIO_H - #ifdef HAVE_SIGNAL_H # include #endif // HAVE_SIGNAL_H @@ -45,6 +39,8 @@ extern "C" { #define _(str) gettext(str) } +#include + namespace otk { @@ -304,4 +300,9 @@ void Display::ungrabKey(unsigned int keycode, unsigned int modifiers, grab_window); } +void Display::ungrabAllKeys(Window grab_window) const +{ + XUngrabKey(_display, AnyKey, AnyModifier, grab_window); +} + }