This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The script is looking for a window with a given WM_CLASS property. The window | |
# will be attached to the root node (R in the graph below), the root note is | |
# what you get from 'xprop -root'. There are two different types of windows with | |
# the same WM_CLASS (Q and W) but their tree structures are different. However, | |
# the tree structure of the two windows are different as seen in the graph | |
# below. | |
# | |
# R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; |