aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-14 14:37:06 (GMT)
committerfluxgen <fluxgen>2003-05-14 14:37:06 (GMT)
commit615ec14ab26bdff2458457a26c5adfe743154873 (patch)
tree3c9b11ceca1b8a45c223ae07b8cd14cc8cb60fb9 /src/fluxbox.cc
parent4195e26d01a37e7e3b131da2b196941c3ce78b12 (diff)
downloadfluxbox-615ec14ab26bdff2458457a26c5adfe743154873.zip
fluxbox-615ec14ab26bdff2458457a26c5adfe743154873.tar.bz2
added better shape support
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index ba8994f..ecec988 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.146 2003/05/14 12:10:54 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.147 2003/05/14 14:37:06 fluxgen Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -454,6 +454,12 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
454 cursor.lr_angle = XCreateFontCursor(disp, XC_lr_angle); 454 cursor.lr_angle = XCreateFontCursor(disp, XC_lr_angle);
455 455
456 s_singleton = this; 456 s_singleton = this;
457 m_have_shape = false;
458 m_shape_eventbase = 0;
459#ifdef SHAPE
460 int shape_err;
461 m_have_shape = XShapeQueryExtension(disp, &m_shape_eventbase, &shape_err);
462#endif // SHAPE
457 463
458#ifdef HAVE_RANDR 464#ifdef HAVE_RANDR
459 // get randr event type 465 // get randr event type
@@ -877,7 +883,7 @@ void Fluxbox::handleEvent(XEvent * const e) {
877 BScreen *scr = searchScreen(e->xany.window); 883 BScreen *scr = searchScreen(e->xany.window);
878 if (scr != 0) 884 if (scr != 0)
879 scr->updateSize(); 885 scr->updateSize();
880 } 886 }
881#endif // HAVE_RANDR 887#endif // HAVE_RANDR
882 888
883 } 889 }