diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-08-24 11:22:46 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-08-24 11:22:46 +0100 |
commit | 9d2684a260ffd1a0b2a084ffdd7adbfcc4ceaafa (patch) | |
tree | 2e38d2784ff8517eb253d9e32038bc5c1b95cd8d /src/x11_window.c | |
parent | 74189114065c79d85ad0b8f75e34490a802cc2f4 (diff) | |
download | imv-9d2684a260ffd1a0b2a084ffdd7adbfcc4ceaafa.tar.gz |
window: Set Wayland/X11 class/app_id hints
Diffstat (limited to 'src/x11_window.c')
-rw-r--r-- | src/x11_window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11_window.c b/src/x11_window.c index 69fb244..c7d752f 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -131,6 +131,11 @@ struct imv_window *imv_window_create(int w, int h, const char *title) window->x_state = XInternAtom(window->x_display, "_NET_WM_STATE", true); window->x_fullscreen = XInternAtom(window->x_display, "_NET_WM_STATE_FULLSCREEN", true); + XClassHint hint = { + .res_name = "imv", + .res_class= "imv", + }; + XSetClassHint(window->x_display, window->x_window, &hint); XMapWindow(window->x_display, window->x_window); XStoreName(window->x_display, window->x_window, title); |