41 |
#include <GL/glx.h> |
#include <GL/glx.h> |
42 |
#include <X11/keysym.h> |
#include <X11/keysym.h> |
43 |
|
|
44 |
|
//#include <X11/cursorfont.h> |
45 |
|
#include <X11/Xlib.h> |
46 |
|
|
47 |
#include <vob/os/Os.hxx> |
#include <vob/os/Os.hxx> |
48 |
#include <vob/Debug.hxx> |
#include <vob/Debug.hxx> |
49 |
|
|
491 |
virtual void resize(int w, int h) { |
virtual void resize(int w, int h) { |
492 |
XResizeWindow(ws->dpy, xw, w, h); |
XResizeWindow(ws->dpy, xw, w, h); |
493 |
} |
} |
494 |
|
virtual void setCursor(int shape) { |
495 |
|
XDefineCursor(ws->dpy, xw, XCreateFontCursor(ws->dpy, shape)); |
496 |
|
} |
497 |
void getSize(int *xywh) { |
void getSize(int *xywh) { |
498 |
// cout << "GetGeometry "<<int(ws)<<" "<<int(ws->dpy)<<" "<<int(xw)<<"\n"; |
// cout << "GetGeometry "<<int(ws)<<" "<<int(ws->dpy)<<" "<<int(xw)<<"\n"; |
499 |
XWindowAttributes attrs; |
XWindowAttributes attrs; |
608 |
} |
} |
609 |
}; |
}; |
610 |
|
|
611 |
|
|
612 |
|
|
613 |
Os::Window *LXWindowSystem::openWindow(int x, int y, int w, int h) { |
Os::Window *LXWindowSystem::openWindow(int x, int y, int w, int h) { |
614 |
LXWindow *win = new LXWindow(this, x, y, w, h); |
LXWindow *win = new LXWindow(this, x, y, w, h); |
615 |
windows.insert(windows.end(), win); |
windows.insert(windows.end(), win); |
643 |
write(interruptPipe[1], &intr, 1); |
write(interruptPipe[1], &intr, 1); |
644 |
} |
} |
645 |
|
|
|
|
|
646 |
void LXWindowSystem::eventLoop(bool wait) { |
void LXWindowSystem::eventLoop(bool wait) { |
647 |
DBG(dbg) << "In C++ eventloop : "<<wait<<"\n"; |
DBG(dbg) << "In C++ eventloop : "<<wait<<"\n"; |
648 |
// We don't want to block; |
// We don't want to block; |