Subversion Repositories seema-scanner

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 17
Line 140... Line 140...
140
    wa.colormap = colormap;
140
    wa.colormap = colormap;
141
    wa.border_pixel = 0;
141
    wa.border_pixel = 0;
142
    wa.event_mask = 0;
142
    wa.event_mask = 0;
143
 
143
 
144
    // bypass window manager (has no effect here)
144
    // bypass window manager (has no effect here)
145
    wa.override_redirect = False;
145
    wa.override_redirect = True;
146
 
146
 
147
    // show no cursor
147
    // show no cursor
148
    wa.cursor = None;
148
    wa.cursor = None;
149
 
149
 
150
    contextInfo->window = XCreateWindow(contextInfo->display, RootWindow(contextInfo->display, 0), screen.posX, screen.posY, screenResX, screenResY, 0, visualInfo->depth, InputOutput, visualInfo->visual, wamask, &wa);
150
    contextInfo->window = XCreateWindow(contextInfo->display, RootWindow(contextInfo->display, 0), screen.posX, screen.posY, screenResX, screenResY, 0, visualInfo->depth, InputOutput, visualInfo->visual, wamask, &wa);
Line 155... Line 155...
155
    if(!contextInfo->window)
155
    if(!contextInfo->window)
156
        std::cerr << "Failed to create X window!" << std::endl;
156
        std::cerr << "Failed to create X window!" << std::endl;
157
 
157
 
158
    // bypass window manager (actually effects here)
158
    // bypass window manager (actually effects here)
159
    XSetWindowAttributes attributes;
159
    XSetWindowAttributes attributes;
160
    attributes.override_redirect = True;
160
    attributes.override_redirect = False;
161
    XChangeWindowAttributes(contextInfo->display, contextInfo->window, CWOverrideRedirect, &attributes);
161
    XChangeWindowAttributes(contextInfo->display, contextInfo->window, CWOverrideRedirect, &attributes);
162
 
162
 
163
    // Disable mouse cursor over window
163
    // Disable mouse cursor over window
164
    XcursorImage *cursorImage = XcursorImageCreate(1, 1);
164
    XcursorImage *cursorImage = XcursorImageCreate(1, 1);
165
    *cursorImage->pixels = 0;
165
    *cursorImage->pixels = 0;