Removing _NET_WM_STATE_SHADED from window state

From: Xin Li (xinli11_at_gmail.com)
Date: 06/29/04

  • Next message: Xin Li: "Removing _NET_WM_STATE_SHADED from window state"
    Date: 28 Jun 2004 16:05:09 -0700
    
    

    Hi,

    I'm trying to find a way to unroll a window that's been "rolled up".
    That is if you press Alt + F12 on a window, which causes it to dispaly
    only its title bar. Apparently, when the window is rolled up, one of
    the atoms in its state collection is the _NET_WM_STATE_SHADED atom.
    So I've tried the following code to unroll a window:

    Atom op = XInternAtom (display, "_NET_WM_STATE_REMOVE", True);
    Atom net_wm_state = XInternAtom(display, "_NET_WM_STATE", True);
    Atom net_wm_state_shaded = XInternAtom(display,
    "_NET_WM_STATE_SHADED", True);
    XEvent e;
    e.xclient.type = ClientMessage;
    e.xclient.message_type = net_wm_state;
    e.xclient.display = display;
    e.xclient.window = win;
    e.xclient.format = 32;
    e.xclient.data.l[3] = 0l;
    e.xclient.data.l[4] = 0l;
    e.xclient.data.l[0] = op;
    e.xclient.data.l[1] = net_wm_state_shaded;
    e.xclient.data.l[2] = net_wm_state_shaded;
    XSendEvent(display, DefaultRootWindow(display), False,
    (SubstructureRedirectMask|SubstructureNotifyMask), &e);

    However, it doesn't seem to do anything. Any hints or pointers would
    be greatly appreciated. Thanks in advance.

    Xin Li


  • Next message: Xin Li: "Removing _NET_WM_STATE_SHADED from window state"

    Relevant Pages

    • Removing _NET_WM_STATE_SHADED from window state
      ... I'm trying to find a way to unroll a window that's been "rolled up". ... That is if you press Alt + F12 on a window, ... the atoms in its state collection is the _NET_WM_STATE_SHADED atom. ...
      (comp.os.linux.x)
    • Re: FN Key to Enable/Disable Touchpad
      ... Outer window is 0x5400001, inner window is 0x5400002 ... PropertyNotify event, serial 8, synthetic NO, window 0x5400001, ... atom 0x22, time 5586921, state PropertyNewValue ...
      (Debian-User)
    • X Error of failed request: BadAtom (invalid Atom parameter)
      ... Ausgabe lokal (also auf Xming) anzeigen zu lassen. ... font missing: KSC5601.1992-3 for Window ... BadAtom ... Current serial number in output stream: ...
      (de.comp.os.unix.x11)
    • Overriding the Create method
      ... I want to change my window attributes before the window is automatically ... if (szWindowName == NULL) ... ATOM atom = RegisterClass; ... The only real change I made was to the window class. ...
      (microsoft.public.vc.atl)
    • Re: How do you call XChangeProperty (to set _NET_WM_PID)
      ... XChangeProperty(display, window, atom, XA_CARDINAL, 32, ... PropModeReplace, (unsigned char *)&pid, 1): ...
      (comp.lang.perl.tk)