mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
fix: missed judgment for some X11 property
This commit is contained in:
parent
0908bb5dd1
commit
55fc34658f
1 changed files with 25 additions and 1 deletions
|
|
@ -117,10 +117,34 @@ xwayland_view_wants_focus(struct view *view)
|
||||||
case WLR_ICCCM_INPUT_MODEL_GLOBAL:
|
case WLR_ICCCM_INPUT_MODEL_GLOBAL:
|
||||||
/*
|
/*
|
||||||
* Assume that NORMAL and DIALOG windows always want
|
* Assume that NORMAL and DIALOG windows always want
|
||||||
* focus. These window types should show up in the
|
* focus, unless they are one of the special window types.
|
||||||
|
* These window types should show up in the
|
||||||
* Alt-Tab switcher and be automatically focused when
|
* Alt-Tab switcher and be automatically focused when
|
||||||
* they become topmost.
|
* they become topmost.
|
||||||
*/
|
*/
|
||||||
|
if (wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_COMBO) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_DND) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_DROPDOWN_MENU) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_MENU) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_NOTIFICATION) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_POPUP_MENU) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_SPLASH) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_DESKTOP) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_TOOLTIP) ||
|
||||||
|
wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_UTILITY)) {
|
||||||
|
return VIEW_WANTS_FOCUS_NEVER;
|
||||||
|
}
|
||||||
|
|
||||||
return (wlr_xwayland_surface_has_window_type(xsurface,
|
return (wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_NORMAL)
|
WLR_XWAYLAND_NET_WM_WINDOW_TYPE_NORMAL)
|
||||||
|| wlr_xwayland_surface_has_window_type(xsurface,
|
|| wlr_xwayland_surface_has_window_type(xsurface,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue