[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    IconicState + _NET_WM_STATE_SKIP_TASKBAR do not work
From:       Jochen.Baier () stud ! uni-karlsruhe ! de
Date:       2005-03-28 21:40:20
Message-ID: 1112046020.424879c41b853 () ssl1 ! rz ! uni-karlsruhe ! de
[Download RAW message or body]

hi,

i want to create a new window with initial_state=IconicState and
_NET_WM_STATE_SKIP_TASKBAR set. if both are set the window will be visible and
in the taskbar. (if only one from both are set it works)

is this is feature to prevent windows not to be unreachable or a bug ?

all hints are welcome, please look on the test code below thanks jochen





#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdlib.h>
#include <stdio.h>
#include <X11/Xatom.h>

//gcc -o test test.c -L/usr/X11R6/lib -lX11

int
main (int argc, char *argv[])
{

  Window window;
  Display *display;
  int skip=0, iconic=0;
  
  display = XOpenDisplay(NULL);
  
  window=XCreateSimpleWindow(display, 
    RootWindow (display, 0), 1, 1, 100, 100, 0, 0, 0);
  
  Atom net_wm_state_skip_taskbar=XInternAtom (display, 
    "_NET_WM_STATE_SKIP_TASKBAR", False);
  Atom net_wm_state = XInternAtom (display, 
    "_NET_WM_STATE", False);
 
  XWMHints *wm_hints=XAllocWMHints();
  wm_hints->initial_state=IconicState;
  wm_hints->flags= StateHint;

  
  skip=1; iconic=1; //both not working, not iconic, not skipped
  //skip=0; iconic=1; //working, window is iconic
  //skip=1; iconic=0; //working, window is skipped

  if (skip) {
   XChangeProperty (display, window, net_wm_state,
     XA_ATOM, 32, PropModeAppend,
     (unsigned char *)&net_wm_state_skip_taskbar, 1);
  }

  if (iconic)
    XSetWMHints (display, window, wm_hints);
   
  XMapWindow (display, window);
  XSync(display, False);
     
  sleep (10);
  
  return 0;
  
}



 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic