|
Lines 90-95
bool MyApp::x11EventFilter( XEvent *ev )
Link Here
|
| 90 |
trinity_desktop_lock_hidden_window_list.append(map_event.window); |
90 |
trinity_desktop_lock_hidden_window_list.append(map_event.window); |
| 91 |
} |
91 |
} |
| 92 |
XLowerWindow(map_event.display, map_event.window); |
92 |
XLowerWindow(map_event.display, map_event.window); |
|
|
93 |
XFlush(map_event.display); |
| 93 |
} |
94 |
} |
| 94 |
} |
95 |
} |
| 95 |
} |
96 |
} |
|
Lines 106-115
bool MyApp::x11EventFilter( XEvent *ev )
Link Here
|
| 106 |
trinity_desktop_lock_hidden_window_list.append(visibility_event.window); |
107 |
trinity_desktop_lock_hidden_window_list.append(visibility_event.window); |
| 107 |
} |
108 |
} |
| 108 |
XLowerWindow(visibility_event.display, visibility_event.window); |
109 |
XLowerWindow(visibility_event.display, visibility_event.window); |
|
|
110 |
XFlush(visibility_event.display); |
| 109 |
} |
111 |
} |
| 110 |
} |
112 |
} |
| 111 |
} |
113 |
} |
| 112 |
} |
114 |
} |
|
|
115 |
else if (ev->type == CreateNotify) { |
| 116 |
// HACK |
| 117 |
// Close all tooltips and notification windows |
| 118 |
XCreateWindowEvent create_event = ev->xcreatewindow; |
| 119 |
XWindowAttributes childAttr; |
| 120 |
Window childTransient; |
| 121 |
if (XGetWindowAttributes(create_event.display, create_event.window, &childAttr) && XGetTransientForHint(create_event.display, create_event.window, &childTransient)) { |
| 122 |
if ((childAttr.override_redirect) && (childTransient)) { |
| 123 |
if (!trinity_desktop_lock_hidden_window_list.contains(create_event.window)) { |
| 124 |
trinity_desktop_lock_hidden_window_list.append(create_event.window); |
| 125 |
} |
| 126 |
XLowerWindow(create_event.display, create_event.window); |
| 127 |
XFlush(create_event.display); |
| 128 |
} |
| 129 |
} |
| 130 |
} |
| 113 |
else if (ev->type == DestroyNotify) { |
131 |
else if (ev->type == DestroyNotify) { |
| 114 |
XDestroyWindowEvent destroy_event = ev->xdestroywindow; |
132 |
XDestroyWindowEvent destroy_event = ev->xdestroywindow; |
| 115 |
if (trinity_desktop_lock_hidden_window_list.contains(destroy_event.window)) { |
133 |
if (trinity_desktop_lock_hidden_window_list.contains(destroy_event.window)) { |