Skip to content

Commit 7ddf7ed

Browse files
committed
src/modules/cpp/flux_event_reader.cpp: Do not get neither _NET_ACTIVE_WINDOW nor _NET_CLIENT_LIST_STACKING atoms before event reading, because that is unneeded, forgot to remove that from code when figured out on how to detect WM restart properly.
1 parent e50c58f commit 7ddf7ed

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/modules/cpp/flux_event_reader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ int main(){
169169
if (get_wm_id(display, root, wm_id) == 1){
170170
return 1;
171171
}
172-
// Listen '_NET_ACTIVE_WINDOW' and '_NET_CLIENT_LIST_STACKING' atoms infinitely (until SIGTERM/SIGINT of course)
173-
Atom net_active_window = XInternAtom(display, "_NET_ACTIVE_WINDOW", False);
174-
Atom net_client_list_stacking = XInternAtom(display, "_NET_CLIENT_LIST_STACKING", False);
172+
// Listen all changes in properties, that is heavy but needed to detect WM restart properly and to prevent "broken" list of opened windows from being shown
175173
XSelectInput(display, root, PropertyChangeMask);
176174
// Store events here
177175
XEvent event;

0 commit comments

Comments
 (0)