Skip to content
Snippets Groups Projects
Commit 2a1c1fd0 authored by Chris Want's avatar Chris Want
Browse files

Iconified windows do not get window focus.

parent 3328cf0d
Branches
Tags
No related merge requests found
......@@ -396,7 +396,14 @@ setOrder(
GHOST_TWindowOrder order
){
if (order == GHOST_kWindowOrderTop) {
XWindowAttributes attr;
XRaiseWindow(m_display,m_window);
XGetWindowAttributes(m_display, m_window, &attr);
/* iconized windows give bad match error */
if (attr.map_state == IsViewable)
XSetInputFocus(m_display, m_window, RevertToPointerRoot,
CurrentTime);
XFlush(m_display);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment