Skip to content

Instantly share code, notes, and snippets.

@baskerville
Created March 21, 2012 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baskerville/2151982 to your computer and use it in GitHub Desktop.
Save baskerville/2151982 to your computer and use it in GitHub Desktop.
Tint2 Patch to Avoid the Dock Window Type Being Applied to the Panel
--- panel.c 2012-03-21 20:40:41.646064585 +0100
+++ panel_nodock.c 2012-03-21 20:41:29.623473226 +0100
@@ -426,11 +426,11 @@
}
// Dock
- long val = server.atom._NET_WM_WINDOW_TYPE_DOCK;
- XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1);
+ /* long val = server.atom._NET_WM_WINDOW_TYPE_DOCK; */
+ /* XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1); */
// Sticky and below other window
- val = ALLDESKTOP;
+ long val = ALLDESKTOP;
XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_DESKTOP, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1);
Atom state[4];
state[0] = server.atom._NET_WM_STATE_SKIP_PAGER;
@baskerville
Copy link
Author

This patch leads to an unexpected side effect, so it probably doesn't worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment