Lines Matching refs:xevent

558 sw_configurenotify_p(Display * display, XEvent * xevent, XPointer arg)
561 if (xevent->xany.type == ConfigureNotify
562 && xevent->xconfigure.window == context->window
563 && xevent->xany.serial >= context->serial)
584 XEvent xevent;
598 if (XCheckIfEvent(g_display, &xevent, sw_configurenotify_p, (XPointer) & context))
702 XEvent xevent;
737 XWindowEvent(g_display, wnds[2], StructureNotifyMask, &xevent);
739 while (xevent.type != MapNotify);
743 XWindowEvent(g_display, wnds[0], StructureNotifyMask, &xevent);
745 while (xevent.type != MapNotify);
749 XWindowEvent(g_display, wnds[1], StructureNotifyMask, &xevent);
751 while (xevent.type != MapNotify);
792 XWindowEvent(g_display, wnds[i], StructureNotifyMask, &xevent);
794 while (xevent.type != DestroyNotify);
2026 XEvent xevent;
2114 XMaskEvent(g_display, VisibilityChangeMask, &xevent);
2116 while (xevent.type != VisibilityNotify);
2117 g_Unobscured = xevent.xvisibility.state == VisibilityUnobscured;
2226 handle_button_event(XEvent xevent, RD_BOOL down)
2229 g_last_gesturetime = xevent.xbutton.time;
2235 xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
2236 button = xkeymap_translate_button(xevent.xbutton.button);
2244 if (g_moving_wnd && (xevent.type == ButtonRelease))
2248 if (xevent.xbutton.y < g_win_button_size)
2251 if (xevent.xbutton.x >= g_width - g_win_button_size)
2256 else if (xevent.xbutton.x >= g_width - g_win_button_size * 2)
2262 if (xevent.type == ButtonPress)
2265 else if (xevent.xbutton.x >= g_width - g_win_button_size * 3)
2268 if (xevent.type == ButtonRelease)
2277 else if (xevent.xbutton.x <= g_win_button_size)
2280 if (xevent.type == ButtonPress)
2286 if (xevent.type == ButtonPress)
2291 g_move_x_offset = xevent.xbutton.x;
2292 g_move_y_offset = xevent.xbutton.y;
2307 if (xevent.xmotion.window == g_wnd)
2310 flags | button, xevent.xbutton.x, xevent.xbutton.y);
2316 flags | button, xevent.xbutton.x_root, xevent.xbutton.y_root);
2326 XEvent xevent;
2336 XNextEvent(g_display, &xevent);
2343 if (xevent.type != ConfigureNotify
2344 && xevent.xany.window == DefaultRootWindow(g_display))
2347 if ((g_IC != NULL) && (XFilterEvent(&xevent, None) == True))
2353 switch (xevent.type)
2356 if (xevent.xvisibility.window == g_wnd)
2358 xevent.xvisibility.state == VisibilityUnobscured;
2363 if ((xevent.xclient.message_type == g_protocol_atom)
2364 && ((Atom) xevent.xclient.data.l[0] == g_kill_atom))
2368 sw = sw_get_window_by_wnd(xevent.xclient.window);
2378 g_last_gesturetime = xevent.xkey.time;
2383 &xevent.xkey, str, sizeof(str), &keysym,
2396 XLookupString((XKeyEvent *) & xevent,
2403 set_keypress_keysym(xevent.xkey.keycode, keysym);
2405 if (handle_special_keys(keysym, xevent.xkey.state, ev_time, True))
2408 xkeymap_send_keys(keysym, xevent.xkey.keycode, xevent.xkey.state,
2413 g_last_gesturetime = xevent.xkey.time;
2414 XLookupString((XKeyEvent *) & xevent, str,
2420 keysym = reset_keypress_keysym(xevent.xkey.keycode, keysym);
2422 if (handle_special_keys(keysym, xevent.xkey.state, ev_time, False))
2425 xkeymap_send_keys(keysym, xevent.xkey.keycode, xevent.xkey.state,
2430 handle_button_event(xevent, True);
2434 handle_button_event(xevent, False);
2441 xevent.xmotion.x_root - g_move_x_offset,
2442 xevent.xmotion.y_root - g_move_y_offset);
2450 if (xevent.xmotion.window == g_wnd)
2453 xevent.xmotion.x, xevent.xmotion.y);
2459 xevent.xmotion.x_root,
2460 xevent.xmotion.y_root);
2465 if (xevent.xfocus.mode == NotifyGrab)
2473 sw = sw_get_window_by_wnd(xevent.xfocus.window);
2500 if (xevent.xfocus.mode == NotifyUngrab)
2503 if (xevent.xfocus.mode == NotifyWhileGrabbed)
2539 if (xevent.xexpose.window == g_wnd)
2541 XCopyArea(g_display, g_backstore, xevent.xexpose.window,
2543 xevent.xexpose.x, xevent.xexpose.y,
2544 xevent.xexpose.width, xevent.xexpose.height,
2545 xevent.xexpose.x, xevent.xexpose.y);
2549 sw = sw_get_window_by_wnd(xevent.xexpose.window);
2553 xevent.xexpose.window, g_gc,
2554 xevent.xexpose.x + sw->xoffset,
2555 xevent.xexpose.y + sw->yoffset,
2556 xevent.xexpose.width,
2557 xevent.xexpose.height, xevent.xexpose.x,
2558 xevent.xexpose.y);
2566 if (xevent.xmapping.request == MappingKeyboard
2567 || xevent.xmapping.request == MappingModifier)
2568 XRefreshKeyboardMapping(&xevent.xmapping);
2570 if (xevent.xmapping.request == MappingModifier)
2576 if (xevent.xmapping.request == MappingPointer)
2585 xclip_handle_SelectionNotify(&xevent.xselection);
2588 xclip_handle_SelectionRequest(&xevent.xselectionrequest);
2594 xclip_handle_PropertyNotify(&xevent.xproperty);
2595 if (xevent.xproperty.window == g_wnd)
2597 if (xevent.xproperty.window == DefaultRootWindow(g_display))
2601 sw = sw_get_window_by_wnd(xevent.xproperty.window);
2605 if ((xevent.xproperty.atom == g_net_wm_state_atom)
2606 && (xevent.xproperty.state == PropertyNewValue))
2612 if ((xevent.xproperty.atom == g_net_wm_desktop_atom)
2613 && (xevent.xproperty.state == PropertyNewValue))
2631 && xevent.xconfigure.window == DefaultRootWindow(g_display))
2633 if (xevent.xconfigure.width != WidthOfScreen(g_screen)
2634 || xevent.xconfigure.height != HeightOfScreen(g_screen))
2636 XRRUpdateConfiguration(&xevent);
2646 sw = sw_get_window_by_wnd(xevent.xconfigure.window);