Commit 6375ee42 authored by hybrid's avatar hybrid

Fix indentation - Note to all: We use tabs...

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2464 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 359fe440
......@@ -590,6 +590,15 @@ bool CIrrDeviceLinux::createWindow()
{
// attach external window
window = (Window)CreationParams.WindowId;
if (!CreationParams.IgnoreInput)
{
XCreateWindow(display,
window,
0, 0, Width, Height, 0, visual->depth,
InputOutput, visual->visual,
CWBorderPixel | CWColormap | CWEventMask,
&attributes);
}
XWindowAttributes wa;
XGetWindowAttributes(display, window, &wa);
CreationParams.WindowSize.Width = wa.width;
......@@ -756,7 +765,7 @@ bool CIrrDeviceLinux::run()
while (XPending(display) > 0 && !Close)
{
XEvent event;
XNextEvent(display, &event);
XWindowEvent(display, window, -1, &event);
switch (event.type)
{
......@@ -964,7 +973,8 @@ bool CIrrDeviceLinux::run()
XChangeProperty (display, req->requestor,
req->property, req->target,
8, PropModeReplace, (unsigned char *) &data,
8, PropModeReplace,
(unsigned char *) &data,
sizeof (data));
respond.xselection.property = req->property;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment