diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-08-08 23:31:41 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-08-08 23:31:41 +0000 |
| commit | fc8b075951005c146162a2d0b319ad418da8a428 (patch) | |
| tree | 100df1c7e39456bb92d065377f3ab5ebb7f2075b /src | |
| parent | 6f6cab4d6e72ef3cf91a4d3c383c11462fc292f7 (diff) | |
On X11, borderless windows will not show in the taskbar anymore (STR #933)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index d20bccca3..39c5dca6b 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1141,6 +1141,14 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) XSetTransientForHint(fl_display, xp->xid, fl_xid(wp)); if (!wp->visible()) showit = 0; // guess that wm will not show it } + + // Make sure that borderless windows do not show in the task bar + if (!win->border()) { + Atom net_wm_state = XInternAtom (fl_display, "_NET_WM_STATE", 0); + Atom net_wm_state_skip_taskbar = XInternAtom (fl_display, "_NET_WM_STATE_SKIP_TASKBAR", 0); + XChangeProperty (fl_display, xp->xid, net_wm_state, XA_ATOM, 32, + PropModeAppend, (unsigned char*) &net_wm_state_skip_taskbar, 1); + } // Make it receptive to DnD: long version = 4; |
