Set WM_CLASS to manage under tiling WMs
Approved by: mentors (implicit)
This commit is contained in:
parent
f5b8404ead
commit
3b7f939de0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378787
2 changed files with 16 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= xsystem35
|
||||
DISTVERSION= 1.7.3-pre5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= emulators games
|
||||
MASTER_SITES= DEBIAN
|
||||
DISTNAME= ${PORTNAME}_${DISTVERSION}.orig
|
||||
|
|
15
emulators/xsystem35/files/patch-wmclass
Normal file
15
emulators/xsystem35/files/patch-wmclass
Normal file
|
@ -0,0 +1,15 @@
|
|||
Origin: https://gist.github.com/smly/5787574
|
||||
|
||||
--- src/xcore_video.c.orig 2003-06-29 15:28:12 UTC
|
||||
+++ src/xcore_video.c
|
||||
@@ -307,6 +307,10 @@ static void init_window(void) {
|
||||
0, WIN_DEPTH,
|
||||
InputOutput, x11_visual, attrib_mask, &at);
|
||||
}
|
||||
+ XClassHint wm_class;
|
||||
+ wm_class.res_name = "XSystem35";
|
||||
+ wm_class.res_class = "XSystem35";
|
||||
+ XSetClassHint( x11_display, x11_window, &wm_class );
|
||||
|
||||
/* determin dib depth candidate */
|
||||
dib_depth_candidate = (depth == 16 && vinfo.red_mask == 0x7c00) ? 15: WIN_DEPTH;
|
Loading…
Reference in a new issue