Win Xp VM on OVS - Increase virtual desktop size to 1920x1080(full screen)

Hi,
I've installed Windows Xp virtual machine on Oracle Virtual Server host.
I use the XP VM by Microsoft Remote Desktop function from another windows desktop PC.
The Xp VM desktop size is max. 1600x1200/16bit.
I'd like to use the Xp VM by Ms RDP in full screen mode(1920x1080 resolution), but I can't.
Please help me, how should I setup the Oracle Virtual Server to get the 1920x1080 resolution in this situation.
Regards,
Battila

Hi,
this has nothing to do with OVS.
Resolution of Microsoft Remote Desktop is set in Windows directly, and does not depend on the underlying hardware of the server.
http://technet.microsoft.com/en-us/library/bb457106.aspx
So you should be able to define that @ you client side.
Regards
Sebastian

Similar Messages

  • How to disabled mutli desktop when I using Full Screen?

    How to disabled mutli desktop when I using Full Screen?
    Some app have a preferences option to do this which like iTerm2
    In Lion-Style FullScreen windows, I can't use command + tab to  quickly switch between in the apps, I must switch to the  app own desktop which is using fullscreen, It's so trouble. I even think this is a flaw in Apple's design.
    So, How can I have use this  feature in others apps such as Google Chrome, Mail, Safari and so on.
    Please Help me!  Thanks! Thanks! Thanks!

    nobody can help me ?

  • Is there a way to set up multiple displays to show different DeskTops and/or multiple Full-Screen apps independently?

    Hello Apple users/ develpers.....
    I have been thinking about this long and hard and it seems like there should be some way to display separate Full-Screen Apps and/or mulitple Desktops.
    This would be a key feature that would make Lion surprisingly more efficient than any of its predicessors.  However, I have gone into System Preferences>Displays and could find no way to page through and get different desktops to display.  I always could extend the desktop, but why do that when I can simply use multiple Desktops and assign them to specific displays.
    (For example While on the MacBook Pro I could be doing a project in FinalCut while External Display 1 could be displaying iTunes and Display number 2 could be displaying MS Word.  And between each I can switch between each app without changing the monitor display.)
    I could also seeing this being extremely helpful in DJ and/or PowerPoint presentations.  In a PowerPoint presentation I could use the projector/display to show the individual Slides, while on the computer/laptop I could control other materials.
    Or in a DJ situation, I could be controlling iTunes from the computer, displaying a set of animations that I created in Flash/ToonBoom or another animation program, while still being able to work off of an independent display to do my homework or major project.
    The whole purpose of multiple displays would be to have multiple access to each of those.  And so if there's another APP I need to control them, or if there is a setup command I don't know about, I'd like to know right away.
    Also, if Apple hasn't really implimented this (and their OS is designed to have these features) then I guess this'd be my first recomendation to them as something that they need to fix.  This alone could be the key to crippling PC.  Don't let Windows 8 have a back door!

    Not available, why not suggest it here.

  • Win 8 and 8.1 - Acrobat X Pro - PDF Save (As) Full Screen Only

    When saving a file Adobe Acrobat X Pro on my WIN 8 (8.1) computer the save (save as) pop-up window ONLY goes to full screen mode. I have CS5.5 installed on my computer and no other Adobe programs are affected. I have uninstalled and reinstalled Acrobat but yet the same problem exists. Does anyone have a solution for this?
    Thanks
    Ken 

    Hi avo-ken,
    Are you still facing this issue?
    It is not a problem it is design behavior. Try double click on the upper bar of the Save As window and that should restore the Save As window.
    Regards,
    Ajlan Huda.

  • Show desktop not working in full screen app

    The thumb & three finger swipe to show the desktop does not work for me if the screen is filled with a full screen app. If hte app is not full screen then the gesture works.
    Is this  a bug, does anyone else get this, what use is the gesture if it doesn't work with full screen apps??!
    TIA,
    J

    John,
    No, the gesture doesn't work in full screen since technically there isn't a desktop under the full screen app.  I just swipe to an adjacent desktop.
    Regards,
    Captfred

  • On an Acer W3 w/win 8.1 there is no way to get out of full screen mode.

    I have the latest version. You can't pull the top menu into view but if I try hard I can get the - to appear and this, with a great deal of effort will let me return to regular desktop mode. This is only a problem with this tablet. Need to have some easy way to return.

    Hello,
    Please see:
    * https://support.mozilla.org/en-US/kb/how-make-firefox-and-websites-go-full-screen
    If you can bring up the keyboard with your tablet, you can hit F11 to get out of Fullscreen mode.

  • Desktop size no longer fits screen size after restart

    Since restarting my iMac today, I cannot get to a full image of everything on the desktop anymore at the resolution setting I used before (second highest, 1344x840); and when I choose full resolution (1680x1050) the desktop only covers 2/3 of the screen. In the closest setting to filling the 20" screen (1344x840) the desktop is slightly larger than the screen (bottom or top cutoff)
    The letter and picture image also seems slightly more blurry in 1388x840 than before, probably because everything is blown up a bit beyond what it should be.
    Regardless of what resolution I choose, every time I move the mouse in one direction, the desktop moves slightly in the opposite direction, stopping only when it reaches the border of the screen (like when you use really magnified settings.)
    I did not change a thing since shutdown last night, nor have I ever experienced anything like this before.
    Any remedies? (I did disk utilities/repair but nothing changed)
    Thanks,
    PP
    null

    Hi PP: Try this: System Preferences > Universal Access, and turn Zoom off. Or, hold the Control key and scroll downwards.
    Hope this helps
    Stedman

  • Mountain Lion bug:  Switching between virtual desktops not possible when using external screen only.

    I think I have found a bug.  I upgraded to Mountain Lion last week, 2 days after ML became available.  My laptop is a Macbook Pro from November 2011.  I ran Lion before and I did an upgrade on my laptop (not reinstall, but upgrade).
    I have an external HP screen (24 inch) connected using DVI (standard connection). I also have an external Apple keyboard (bluetooth) and the external trackpad (bluetooth). I concider myself as a power user with long experience.  I started using multiple desktops in Snow Leopard, and really liked the "4 finger swipe up" that came in Lion.  By swiping 4 fingers up on the trackpad, I can see all "virtual desktops" on the top of the screen and select or more applications to the different screens.
    This function does still work, but when I put the Macbook pro in "clamshell mode" (meaning the lid is locked and I am ONLY using the external screen), then this does not work.  When I do the gesture (4 finger swipe up), the virtual desktops on top of the screen are not shown. 
    But if I open the Mac and then having 2 active screens, both the internal LCD on the Macbook Pro and the external HP screen, it works again.  It does not matter which screen the "Finder many" is active on.
    Picture below show how it is supposed to work.  And it still works if no external screen is connected or if the external screen connected but the lid on the Mac is still open (not clamshell mode).
    This is how it looks on the external screen when I do the "4 finger swipe up" and the Macbook Pro is in clamshell mode (lid down).  Please also note how the background image is not minimized in the same way as before.
    Have any other experienced the same problem ?  Where do I report this to Apple ?  Any e-mail or WEB pages where I can report bugs ?

    As an update, I tried switching the main display to the MBP. Nothing changed.
    However, I changed the rotation to 90 degrees and everything is back to Normal! Aside from the fact that I'm looking a 24" screen in the vertical position.

  • Remote desktop full screen mode not going full screen

    Hi,
    Running Windows 7 RTM x64 on both my PC at home and my workstation at work.
    My PC at home has a square monitor and my work PC has a widescreen monitor.
    I used webapps (citrix) from home to get into work environment then remoted to my workstation.
    Since doing that, when I am physically at the workstation (at work), I can no longer remote desktop to servers in full screen mode.  Instead, it does a smaller window with "full screen settings".  Basically the full screen remote desktop is about 3/4 size of the monitor, not 100%.
    Any help appreciated.
    -thanks

    I  have this problem too ... On Windows 7. 
    Dell XPS14 laptop ... No Pause Key ... No Break Key... (ctrl +alt + fn + F12) doesn't work.
    The thing that bugs me most is ..... What's
    changed and WHY?
    I've been using remote desktop for years and maximizing always used to send it to full screen.
    Now suddenly I can't go to full screen without exiting and resetting the screen size with the slide bar in the options!
    WHY
    Seems this has been broken in Windows 7. It still works fine as it used to on my old M65 running Vista.
    Why has
    this been broken in Windows 7? How come no one at MS noticed?
    The marked answer is not acceptable. Sure it works when you initially open the connection but if
    you minimize or restore the window the problem comes back as before.
    Hi, I'm on a Dell Inspiron N5010 and for me, the winning combination was Ctrl-Alt-Fn-F6. Toggles full screen and windowed screen.

  • Win 2102: existing number of virtual desktops is not valid after errors while deleting , how to fix it ?

    Hello everyone,
    I created a virtual desktop collection with a name format like this , prefix = VDI-, suffix= 1 .
    so when I created the first VMs , I had VDI-1 and VDI-2 , later after recreating the VMs, adding new ones and deleting others, the suffix numbers are no longer in sequence , like I started having VDI-1,VDI-2,VDI-8,VDI-9.
    I realized I had one problem that probably caused this, because when I delete a VM , I get a warning message:
    "RD connection broker could not delete the computer account object from active directory."
    so I searched about that error and I added the needed permissions and now deleting seems to work without any warning.
    now I have two VMs, when I go through the wizard , the first page it shows I have 2 VMs but in the second page it shows I have 11 ! is there a way to reset the count ? if I delete the entire collection and create it again , will I have any problem with the
    roaming users profiles ?
    Thanks

    Hi,
    Thank you for your posting in Windows Server Forum.
    You can specify the count for RDVH as how many desktop wants for particular host. You can do this “Specify Virtual Desktop allocation” while creating virtual desktop collection. Other than that you can also use PowerShell command to achieve your task.
    For more details you can refer beneath article.
    1. Fumbling through Windows Server 2012 Virtual Desktop Infrastructure (VDI)
    2. Deploying VDI for RDS 2012 / 2012R2 – Part II – Publishing a Windows 7 Pooled Desktop
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • What licenses do I need to get a virtual desktop environment up and running?

    I’m trying to figure out what licenses I need to get a full Windows Virtual Desktop Infrastructure (VDI) up and running with the Remote Desktop Service (RDS) roles.
    I have Win.Server 2012 running Hyper-V, which has about 10 different virtual machines (VM) with either Win.7 or Win.8 installed on it. These VMs will act as virtual desktops (VD) for about 200 people to remotely access and use.
    My question is, what licenses do I need to support this scenario?
    So far, I’m planning to purchase a few Windows Server 2012 Standard Edition with 10 Client Access Licenses ( $1414.19 each). I’m assuming that’s 1 license for the server and 10 Client Access Licenses (CAL) for users who will access the VDs. I’m also planning
    to buy about 200 RDS CALs ($149 each) for the rest of the users to access the VDs. Do I need to buy additional licenses for each VM image I create (the 10 images I mentioned earlier)? These VMs are in a pooled virtual desktop collection, so they reset themselves
    when users disconnect from them. If I have personal desktop collections which give unique desktops to each user and saves their settings, will my license have to change if I have that too?
    At first I thought just buying the RDS CALs will allow me to install windows where ever I want, how many times I want and all I have to worry about is paying for the client access, but do I need to pay for the OS as well? So essentially I’m doubling the
    license?
    A side question not really related is, if I have Windows Thin PC, (which was said to come free if I have SA with another product)  and bought the Windows Server license, does that come with SA and I can install Windows Thin PC as many times as I want
    on which ever desktop I have that will connect to this VDI system?

    The 10 server licenses are fine, but they don't help you with VDI or remote desktops. I you want to install the Remote Desktop Session Host (formerly known as Terminal Server) role on all your servers und provide remote desktops for your 200 users, 200 RDS
    CALs are the right choice (per user or per device).
    But if your 200 users have access to virtual desktops, you need 200 VDI licenses. It doesn't matter if you only have 10 virtual desktops if potentially all your 200 users have access to them. VDI licensing is not based on a concurrent model, so every client
    that can connect to a VM needs its own license. If Windows 8 Enterprise with SA is on all your client devices, you're set because SA gives users access rights to up to 4 Win8 or Win7 VMs concurrently (local or remote). In addition
    it gives them a so-called companion subscription license for personally owned, non-primary devices.
    For those primary corporate devices that are without SA, you'll need to purchase a single VDA license for each device that connects to any number of your Win7 or Win8 VMs. The same applies to personally owned devices of users who don't have a primary
    corporate device with SA. In other words, BYOD is supported if your primary device is under SA.
    For neither VDI/SA nor VDA it does matter if users are connecting to different VM images or only one. Typically, they cannot connect to more than 4 VMs at the same time in order to stay within the licensing limits.
    Benny

  • Remote desktop virtualization setup - can't identify virtual desktop state

    I'm experimenting with MS's vdi offering and have hit a problem when selecting the Remote Desktop template virtual machine.
    The Error (translated from spanish)
    'Cannot identify the virtual desktop state. Verify that the remote desktop virtualization host server hypervsrv is available on the network and that the virtual desktop VDIBaseWin7 is closed'
    What I've got:
    A Windows 2012 R2 with hyper-v
    A Windows 2012 Std on which I am trying to configure Remote desktop virtualization
    A virtual machine with Windows 7 pro. The machine is basic win 7, patched and has been sysprepped.
    How I get there:
    From server manager I open Remote Desktop Services > from the wizard área above I click on (3) Create remote desktop collection
    This opens the wizard where I choose a name for the collection
    I then select 'personal virtual desktop collection' and 'créate and adminístrate virtual desktops automatically'
    The wizard then presents me with a list of virtual machines. I then select the sysprepped wind 7 pro machine (which is shut down naturally). I've tried generating the win7 machine as a generation 1 and generation 2 - the result is the same.
    The wizard pauses for a few moments and then displays:
    'Cannot identify the virtual desktop state. Verify that the remote desktop virtualization host server hypervsrv is available on the network and that the virtual desktop VDIBaseWin7 is closed'
    Neither the event log of the hyper-v server, nor the rds server, report anything.
    So, my question is, whats failing? Its obvious that its trying to perform some action and is failing. The question is, whats it trying to do. If I knew what it was doing then I could investigate the cause, but the error doesn't say much.
    Anyone have any ideas?

    strange, This question has been moved to the remote desktop forum. I would have thought this forum was more for the traditional terminal server type questions.
    Anyway, I found a solution to my own problem. It turns out to be the mix of 2012R2 for hyperv and 2012 std for the broker, etc.
    I set up another server with 2012r2 and followed the same sequence to configure it with the rds roles and it worked perfectly.

  • Hacking conky's own_window_type desktop to run on one virtual desktop

    Since I have no dual screen setup (just a laptop) I'd like to use my virtual desktops to run different conky instances on (almost) every virtual desktop. I tried to accomplish this by using own_window_type normal in conky, and that works - until I call the desktop, then it just minimises like a regular app. That's not what I want.
    People in #conky suggested I use the if_match functionality in conky, so I can keep using the own_window_type desktop setting, but that does not solve my issue since you cannot define different conky window sizes in one configuration file. I checked in with #openbox and they told me essentially Conky should not display on every virtual desktop (and frankly they have a point, since you can tell e.g. Openbox to sticky an app on every virtual desktop). However, one would need to hack the code for that (specifically the stuff that takes care of putting the desktop window type on every virtual desktop). That's where you guys come in, since my C knowledge is close to non-existent .
    I was told to look at x11.c and specifically the init_window() function but I'm at loss where to start...
    /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
    * vim: ts=4 sw=4 noet ai cindent syntax=c
    * Conky, a system monitor, based on torsmo
    * Any original torsmo code is licensed under the BSD license
    * All code written since the fork of torsmo is licensed under the GPL
    * Please see COPYING for details
    * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
    * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
    * (see AUTHORS)
    * All rights reserved.
    * This program is free software: you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation, either version 3 of the License, or
    * (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program. If not, see <http://www.gnu.org/licenses/>.
    #include "config.h"
    #include "conky.h"
    #include "logging.h"
    #include "common.h"
    #include "x11.h"
    #include <X11/Xlib.h>
    #include <X11/Xatom.h>
    #include <X11/Xmd.h>
    #include <X11/Xutil.h>
    #ifdef IMLIB2
    #include "imlib2.h"
    #endif /* IMLIB2 */
    #ifdef XFT
    #include <X11/Xft/Xft.h>
    int use_xft = 0;
    #endif
    #ifdef HAVE_XDBE
    int use_xdbe;
    #endif
    #ifdef USE_ARGB
    int use_argb_visual;
    int have_argb_visual;
    #endif /* USE_ARGB */
    int own_window_argb_value;
    /* some basic X11 stuff */
    Display *display = NULL;
    int display_width;
    int display_height;
    int screen;
    static int set_transparent;
    static int background_colour;
    /* workarea from _NET_WORKAREA, this is where window / text is aligned */
    int workarea[4];
    /* Window stuff */
    struct conky_window window;
    char window_created = 0;
    /* local prototypes */
    static void update_workarea(void);
    static Window find_desktop_window(Window *p_root, Window *p_desktop);
    static Window find_subwindow(Window win, int w, int h);
    /* X11 initializer */
    void init_X11(const char *disp)
    if (!display) {
    if ((display = XOpenDisplay(disp)) == NULL) {
    CRIT_ERR(NULL, NULL, "can't open display: %s", XDisplayName(disp));
    screen = DefaultScreen(display);
    display_width = DisplayWidth(display, screen);
    display_height = DisplayHeight(display, screen);
    get_x11_desktop_info(display, 0);
    update_workarea();
    static void update_workarea(void)
    /* default work area is display */
    workarea[0] = 0;
    workarea[1] = 0;
    workarea[2] = display_width;
    workarea[3] = display_height;
    /* Find root window and desktop window.
    * Return desktop window on success,
    * and set root and desktop byref return values.
    * Return 0 on failure. */
    static Window find_desktop_window(Window *p_root, Window *p_desktop)
    Atom type;
    int format, i;
    unsigned long nitems, bytes;
    unsigned int n;
    Window root = RootWindow(display, screen);
    Window win = root;
    Window troot, parent, *children;
    unsigned char *buf = NULL;
    if (!p_root || !p_desktop) {
    return 0;
    /* some window managers set __SWM_VROOT to some child of root window */
    XQueryTree(display, root, &troot, &parent, &children, &n);
    for (i = 0; i < (int) n; i++) {
    if (XGetWindowProperty(display, children[i], ATOM(__SWM_VROOT), 0, 1,
    False, XA_WINDOW, &type, &format, &nitems, &bytes, &buf)
    == Success && type == XA_WINDOW) {
    win = *(Window *) buf;
    XFree(buf);
    XFree(children);
    fprintf(stderr,
    PACKAGE_NAME": desktop window (%lx) found from __SWM_VROOT property\n",
    win);
    fflush(stderr);
    *p_root = win;
    *p_desktop = win;
    return win;
    if (buf) {
    XFree(buf);
    buf = 0;
    XFree(children);
    /* get subwindows from root */
    win = find_subwindow(root, -1, -1);
    update_workarea();
    win = find_subwindow(win, workarea[2], workarea[3]);
    if (buf) {
    XFree(buf);
    buf = 0;
    if (win != root) {
    fprintf(stderr,
    PACKAGE_NAME": desktop window (%lx) is subwindow of root window (%lx)\n",
    win, root);
    } else {
    fprintf(stderr, PACKAGE_NAME": desktop window (%lx) is root window\n", win);
    fflush(stderr);
    *p_root = root;
    *p_desktop = win;
    return win;
    static int colour_set = -1;
    /* if no argb visual is configured sets background to ParentRelative for the Window and all parents,
    else real transparency is used */
    void set_transparent_background(Window win, int alpha)
    (void)alpha; /* disable warnings when unused */
    #ifdef USE_ARGB
    if (have_argb_visual) {
    // real transparency
    if (set_transparent) {
    XSetWindowBackground(display, win, 0x00);
    } else if (colour_set != background_colour) {
    XSetWindowBackground(display, win,
    background_colour | (alpha << 24));
    colour_set = background_colour;
    } else {
    #endif /* USE_ARGB */
    // pseudo transparency
    if (set_transparent) {
    Window parent = win;
    unsigned int i;
    for (i = 0; i < 50 && parent != RootWindow(display, screen); i++) {
    Window r, *children;
    unsigned int n;
    XSetWindowBackgroundPixmap(display, parent, ParentRelative);
    XQueryTree(display, parent, &r, &parent, &children, &n);
    XFree(children);
    } else if (colour_set != background_colour) {
    XSetWindowBackground(display, win, background_colour);
    colour_set = background_colour;
    #ifdef USE_ARGB
    #endif /* USE_ARGB */
    #ifdef USE_ARGB
    static int get_argb_visual(Visual** visual, int *depth) {
    /* code from gtk project, gdk_screen_get_rgba_visual */
    XVisualInfo visual_template;
    XVisualInfo *visual_list;
    int nxvisuals = 0, i;
    visual_template.screen = screen;
    visual_list = XGetVisualInfo (display, VisualScreenMask,
    &visual_template, &nxvisuals);
    for (i = 0; i < nxvisuals; i++) {
    if (visual_list[i].depth == 32 &&
    (visual_list[i].red_mask == 0xff0000 &&
    visual_list[i].green_mask == 0x00ff00 &&
    visual_list[i].blue_mask == 0x0000ff)) {
    *visual = visual_list[i].visual;
    *depth = visual_list[i].depth;
    DBGP("Found ARGB Visual");
    XFree(visual_list);
    return 1;
    // no argb visual available
    DBGP("No ARGB Visual found");
    XFree(visual_list);
    return 0;
    #endif /* USE_ARGB */
    void destroy_window(void)
    #ifdef XFT
    if(window.xftdraw) {
    XftDrawDestroy(window.xftdraw);
    #endif
    if(window.gc) {
    XFreeGC(display, window.gc);
    memset(&window, 0, sizeof(struct conky_window));
    colour_set = -1;
    void init_window(int own_window, int w, int h, int set_trans, int back_colour,
    char **argv, int argc)
    /* There seems to be some problems with setting transparent background
    * (on fluxbox this time). It doesn't happen always and I don't know why it
    * happens but I bet the bug is somewhere here. */
    set_transparent = set_trans;
    background_colour = back_colour;
    window_created = 1;
    #ifdef OWN_WINDOW
    if (own_window) {
    int depth = 0, flags;
    Visual *visual = NULL;
    if (!find_desktop_window(&window.root, &window.desktop)) {
    return;
    #ifdef USE_ARGB
    if (use_argb_visual && get_argb_visual(&visual, &depth)) {
    have_argb_visual = 1;
    window.visual = visual;
    window.colourmap = XCreateColormap(display,
    DefaultRootWindow(display), window.visual, AllocNone);
    } else {
    #endif /* USE_ARGB */
    window.visual = DefaultVisual(display, screen);
    window.colourmap = DefaultColormap(display, screen);
    depth = CopyFromParent;
    visual = CopyFromParent;
    #ifdef USE_ARGB
    #endif /* USE_ARGB */
    if (window.type == TYPE_OVERRIDE) {
    /* An override_redirect True window.
    * No WM hints or button processing needed. */
    XSetWindowAttributes attrs = { ParentRelative, 0L, 0, 0L, 0, 0,
    Always, 0L, 0L, False, StructureNotifyMask | ExposureMask, 0L,
    True, 0, 0 };
    #ifdef USE_ARGB
    if (have_argb_visual) {
    attrs.colormap = window.colourmap;
    flags = CWBorderPixel | CWColormap | CWOverrideRedirect;
    } else {
    #endif /* USE_ARGB */
    flags = CWBackPixel | CWOverrideRedirect;
    #ifdef USE_ARGB
    #endif /* USE_ARGB */
    /* Parent is desktop window (which might be a child of root) */
    window.window = XCreateWindow(display, window.desktop, window.x,
    window.y, w, h, 0, depth, InputOutput, visual,
    flags, &attrs);
    XLowerWindow(display, window.window);
    fprintf(stderr, PACKAGE_NAME": window type - override\n");
    fflush(stderr);
    } else { /* window.type != TYPE_OVERRIDE */
    /* A window managed by the window manager.
    * Process hints and buttons. */
    XSetWindowAttributes attrs = { ParentRelative, 0L, 0, 0L, 0, 0,
    Always, 0L, 0L, False, StructureNotifyMask | ExposureMask |
    ButtonPressMask | ButtonReleaseMask, 0L, False, 0, 0 };
    XClassHint classHint;
    XWMHints wmHint;
    Atom xa;
    #ifdef USE_ARGB
    if (have_argb_visual) {
    attrs.colormap = window.colourmap;
    flags = CWBorderPixel | CWColormap | CWOverrideRedirect;
    } else {
    #endif /* USE_ARGB */
    flags = CWBackPixel | CWOverrideRedirect;
    #ifdef USE_ARGB
    #endif /* USE_ARGB */
    if (window.type == TYPE_DOCK) {
    window.x = window.y = 0;
    /* Parent is root window so WM can take control */
    window.window = XCreateWindow(display, window.root, window.x,
    window.y, w, h, 0, depth, InputOutput, visual,
    flags, &attrs);
    classHint.res_name = window.class_name;
    classHint.res_class = classHint.res_name;
    wmHint.flags = InputHint | StateHint;
    /* allow decorated windows to be given input focus by WM */
    wmHint.input =
    TEST_HINT(window.hints, HINT_UNDECORATED) ? False : True;
    if (window.type == TYPE_DOCK || window.type == TYPE_PANEL) {
    wmHint.initial_state = WithdrawnState;
    } else {
    wmHint.initial_state = NormalState;
    XmbSetWMProperties(display, window.window, NULL, NULL, argv,
    argc, NULL, &wmHint, &classHint);
    XStoreName(display, window.window, window.title);
    /* Sets an empty WM_PROTOCOLS property */
    XSetWMProtocols(display, window.window, NULL, 0);
    /* Set window type */
    if ((xa = ATOM(_NET_WM_WINDOW_TYPE)) != None) {
    Atom prop;
    switch (window.type) {
    case TYPE_DESKTOP:
    prop = ATOM(_NET_WM_WINDOW_TYPE_DESKTOP);
    fprintf(stderr, PACKAGE_NAME": window type - desktop\n");
    fflush(stderr);
    break;
    case TYPE_DOCK:
    prop = ATOM(_NET_WM_WINDOW_TYPE_DOCK);
    fprintf(stderr, PACKAGE_NAME": window type - dock\n");
    fflush(stderr);
    break;
    case TYPE_PANEL:
    prop = ATOM(_NET_WM_WINDOW_TYPE_DOCK);
    fprintf(stderr, PACKAGE_NAME": window type - panel\n");
    fflush(stderr);
    break;
    case TYPE_NORMAL:
    default:
    prop = ATOM(_NET_WM_WINDOW_TYPE_NORMAL);
    fprintf(stderr, PACKAGE_NAME": window type - normal\n");
    fflush(stderr);
    break;
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeReplace, (unsigned char *) &prop, 1);
    /* Set desired hints */
    /* Window decorations */
    if (TEST_HINT(window.hints, HINT_UNDECORATED)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - undecorated\n");
    fflush(stderr); */
    xa = ATOM(_MOTIF_WM_HINTS);
    if (xa != None) {
    long prop[5] = { 2, 0, 0, 0, 0 };
    XChangeProperty(display, window.window, xa, xa, 32,
    PropModeReplace, (unsigned char *) prop, 5);
    /* Below other windows */
    if (TEST_HINT(window.hints, HINT_BELOW)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - below\n");
    fflush(stderr); */
    xa = ATOM(_WIN_LAYER);
    if (xa != None) {
    long prop = 0;
    XChangeProperty(display, window.window, xa, XA_CARDINAL, 32,
    PropModeAppend, (unsigned char *) &prop, 1);
    xa = ATOM(_NET_WM_STATE);
    if (xa != None) {
    Atom xa_prop = ATOM(_NET_WM_STATE_BELOW);
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    /* Above other windows */
    if (TEST_HINT(window.hints, HINT_ABOVE)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - above\n");
    fflush(stderr); */
    xa = ATOM(_WIN_LAYER);
    if (xa != None) {
    long prop = 6;
    XChangeProperty(display, window.window, xa, XA_CARDINAL, 32,
    PropModeAppend, (unsigned char *) &prop, 1);
    xa = ATOM(_NET_WM_STATE);
    if (xa != None) {
    Atom xa_prop = ATOM(_NET_WM_STATE_ABOVE);
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    /* Sticky */
    if (TEST_HINT(window.hints, HINT_STICKY)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - sticky\n");
    fflush(stderr); */
    xa = ATOM(_NET_WM_DESKTOP);
    if (xa != None) {
    CARD32 xa_prop = 0xFFFFFFFF;
    XChangeProperty(display, window.window, xa, XA_CARDINAL, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    xa = ATOM(_NET_WM_STATE);
    if (xa != None) {
    Atom xa_prop = ATOM(_NET_WM_STATE_STICKY);
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    /* Skip taskbar */
    if (TEST_HINT(window.hints, HINT_SKIP_TASKBAR)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - skip_taskbar\n");
    fflush(stderr); */
    xa = ATOM(_NET_WM_STATE);
    if (xa != None) {
    Atom xa_prop = ATOM(_NET_WM_STATE_SKIP_TASKBAR);
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    /* Skip pager */
    if (TEST_HINT(window.hints, HINT_SKIP_PAGER)) {
    /* fprintf(stderr, PACKAGE_NAME": hint - skip_pager\n");
    fflush(stderr); */
    xa = ATOM(_NET_WM_STATE);
    if (xa != None) {
    Atom xa_prop = ATOM(_NET_WM_STATE_SKIP_PAGER);
    XChangeProperty(display, window.window, xa, XA_ATOM, 32,
    PropModeAppend, (unsigned char *) &xa_prop, 1);
    fprintf(stderr, PACKAGE_NAME": drawing to created window (0x%lx)\n",
    window.window);
    fflush(stderr);
    XMapWindow(display, window.window);
    } else
    #endif /* OWN_WINDOW */
    XWindowAttributes attrs;
    if (!window.window) {
    window.window = find_desktop_window(&window.root, &window.desktop);
    window.visual = DefaultVisual(display, screen);
    window.colourmap = DefaultColormap(display, screen);
    if (XGetWindowAttributes(display, window.window, &attrs)) {
    window.width = attrs.width;
    window.height = attrs.height;
    fprintf(stderr, PACKAGE_NAME": drawing to desktop window\n");
    /* Drawable is same as window. This may be changed by double buffering. */
    window.drawable = window.window;
    #ifdef HAVE_XDBE
    if (use_xdbe) {
    int major, minor;
    if (!XdbeQueryExtension(display, &major, &minor)) {
    use_xdbe = 0;
    } else {
    window.back_buffer = XdbeAllocateBackBufferName(display,
    window.window, XdbeBackground);
    if (window.back_buffer != None) {
    window.drawable = window.back_buffer;
    fprintf(stderr, PACKAGE_NAME": drawing to double buffer\n");
    } else {
    use_xdbe = 0;
    if (!use_xdbe) {
    NORM_ERR("failed to set up double buffer");
    if (!use_xdbe) {
    fprintf(stderr, PACKAGE_NAME": drawing to single buffer\n");
    #endif
    #ifdef IMLIB2
    cimlib_init(display, window.drawable, window.visual, window.colourmap);
    #endif /* IMLIB2 */
    XFlush(display);
    XSelectInput(display, window.window, ExposureMask | PropertyChangeMask
    #ifdef OWN_WINDOW
    | (own_window ? (StructureNotifyMask |
    ButtonPressMask | ButtonReleaseMask) : 0)
    #endif
    static Window find_subwindow(Window win, int w, int h)
    unsigned int i, j;
    Window troot, parent, *children;
    unsigned int n;
    /* search subwindows with same size as display or work area */
    for (i = 0; i < 10; i++) {
    XQueryTree(display, win, &troot, &parent, &children, &n);
    for (j = 0; j < n; j++) {
    XWindowAttributes attrs;
    if (XGetWindowAttributes(display, children[j], &attrs)) {
    /* Window must be mapped and same size as display or
    * work space */
    if (attrs.map_state != 0 && ((attrs.width == display_width
    && attrs.height == display_height)
    || (attrs.width == w && attrs.height == h))) {
    win = children[j];
    break;
    XFree(children);
    if (j == n) {
    break;
    return win;
    void create_gc(void)
    XGCValues values;
    values.graphics_exposures = 0;
    values.function = GXcopy;
    window.gc = XCreateGC(display, window.drawable,
    GCFunction | GCGraphicsExposures, &values);
    //Get current desktop number
    static inline void get_x11_desktop_current(Display *current_display, Window root, Atom atom)
    Atom actual_type;
    int actual_format;
    unsigned long nitems;
    unsigned long bytes_after;
    unsigned char *prop = NULL;
    struct information *current_info = &info;
    if (atom == None) return;
    if ( (XGetWindowProperty( current_display, root, atom,
    0, 1L, False, XA_CARDINAL,
    &actual_type, &actual_format, &nitems,
    &bytes_after, &prop ) == Success ) &&
    (actual_type == XA_CARDINAL) &&
    (nitems == 1L) && (actual_format == 32) ) {
    current_info->x11.desktop.current = prop[0]+1;
    if(prop) {
    XFree(prop);
    //Get total number of available desktops
    static inline void get_x11_desktop_number(Display *current_display, Window root, Atom atom)
    Atom actual_type;
    int actual_format;
    unsigned long nitems;
    unsigned long bytes_after;
    unsigned char *prop = NULL;
    struct information *current_info = &info;
    if (atom == None) return;
    if ( (XGetWindowProperty( current_display, root, atom,
    0, 1L, False, XA_CARDINAL,
    &actual_type, &actual_format, &nitems,
    &bytes_after, &prop ) == Success ) &&
    (actual_type == XA_CARDINAL) &&
    (nitems == 1L) && (actual_format == 32) ) {
    current_info->x11.desktop.number = prop[0];
    if(prop) {
    XFree(prop);
    //Get all desktop names
    static inline void get_x11_desktop_names(Display *current_display, Window root, Atom atom)
    Atom actual_type;
    int actual_format;
    unsigned long nitems;
    unsigned long bytes_after;
    unsigned char *prop = NULL;
    struct information *current_info = &info;
    if (atom == None) return;
    if ( (XGetWindowProperty( current_display, root, atom,
    0, (~0L), False, ATOM(UTF8_STRING),
    &actual_type, &actual_format, &nitems,
    &bytes_after, &prop ) == Success ) &&
    (actual_type == ATOM(UTF8_STRING)) &&
    (nitems > 0L) && (actual_format == 8) ) {
    if(current_info->x11.desktop.all_names) {
    free(current_info->x11.desktop.all_names);
    current_info->x11.desktop.all_names = NULL;
    current_info->x11.desktop.all_names = malloc(nitems*sizeof(char));
    memcpy(current_info->x11.desktop.all_names, prop, nitems);
    current_info->x11.desktop.nitems = nitems;
    if(prop) {
    XFree(prop);
    //Get current desktop name
    static inline void get_x11_desktop_current_name(char *names)
    struct information *current_info = &info;
    unsigned int i = 0, j = 0;
    int k = 0;
    while ( i < current_info->x11.desktop.nitems ) {
    if ( names[i++] == '\0' ) {
    if ( ++k == current_info->x11.desktop.current ) {
    if (current_info->x11.desktop.name) {
    free(current_info->x11.desktop.name);
    current_info->x11.desktop.name = NULL;
    current_info->x11.desktop.name = malloc((i-j)*sizeof(char));
    //desktop names can be empty but should always be not null
    strcpy( current_info->x11.desktop.name, (char *)&names[j] );
    break;
    j = i;
    void get_x11_desktop_info(Display *current_display, Atom atom)
    Window root;
    static Atom atom_current, atom_number, atom_names;
    struct information *current_info = &info;
    XWindowAttributes window_attributes;
    root = RootWindow(current_display, current_info->x11.monitor.current);
    /* Check if we initialise else retrieve changed property */
    if (atom == 0) {
    atom_current = XInternAtom(current_display, "_NET_CURRENT_DESKTOP", True);
    atom_number = XInternAtom(current_display, "_NET_NUMBER_OF_DESKTOPS", True);
    atom_names = XInternAtom(current_display, "_NET_DESKTOP_NAMES", True);
    get_x11_desktop_current(current_display, root, atom_current);
    get_x11_desktop_number(current_display, root, atom_number);
    get_x11_desktop_names(current_display, root, atom_names);
    get_x11_desktop_current_name(current_info->x11.desktop.all_names);
    /* Set the PropertyChangeMask on the root window, if not set */
    XGetWindowAttributes(display, root, &window_attributes);
    if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
    XSetWindowAttributes attributes;
    attributes.event_mask = window_attributes.your_event_mask | PropertyChangeMask;
    XChangeWindowAttributes(display, root, CWEventMask, &attributes);
    XGetWindowAttributes(display, root, &window_attributes);
    } else {
    if (atom == atom_current) {
    get_x11_desktop_current(current_display, root, atom_current);
    get_x11_desktop_current_name(current_info->x11.desktop.all_names);
    } else if (atom == atom_number) {
    get_x11_desktop_number(current_display, root, atom_number);
    } else if (atom == atom_names) {
    get_x11_desktop_names(current_display, root, atom_names);
    get_x11_desktop_current_name(current_info->x11.desktop.all_names);
    void update_x11info(void)
    struct information *current_info = &info;
    if (x_initialised != YES)
    return;
    current_info->x11.monitor.number = XScreenCount(display);
    current_info->x11.monitor.current = XDefaultScreen(display);
    #ifdef OWN_WINDOW
    /* reserve window manager space */
    void set_struts(int sidenum)
    Atom strut;
    if ((strut = ATOM(_NET_WM_STRUT)) != None) {
    /* reserve space at left, right, top, bottom */
    signed long sizes[12] = {0};
    int i;
    /* define strut depth */
    switch (sidenum) {
    case 0:
    /* left side */
    sizes[0] = window.x + window.width;
    break;
    case 1:
    /* right side */
    sizes[1] = display_width - window.x;
    break;
    case 2:
    /* top side */
    sizes[2] = window.y + window.height;
    break;
    case 3:
    /* bottom side */
    sizes[3] = display_height - window.y;
    break;
    /* define partial strut length */
    if (sidenum <= 1) {
    sizes[4 + (sidenum*2)] = window.y;
    sizes[5 + (sidenum*2)] = window.y + window.height;
    } else if (sidenum <= 3) {
    sizes[4 + (sidenum*2)] = window.x;
    sizes[5 + (sidenum*2)] = window.x + window.width;
    /* check constraints */
    for (i = 0; i < 12; i++) {
    if (sizes[i] < 0) {
    sizes[i] = 0;
    } else {
    if (i <= 1 || i >= 8) {
    if (sizes[i] > display_width) {
    sizes[i] = display_width;
    } else {
    if (sizes[i] > display_height) {
    sizes[i] = display_height;
    XChangeProperty(display, window.window, strut, XA_CARDINAL, 32,
    PropModeReplace, (unsigned char *) &sizes, 4);
    if ((strut = ATOM(_NET_WM_STRUT_PARTIAL)) != None) {
    XChangeProperty(display, window.window, strut, XA_CARDINAL, 32,
    PropModeReplace, (unsigned char *) &sizes, 12);
    #endif /* OWN_WINDOW */
    #ifdef HAVE_XDBE
    void xdbe_swap_buffers(void)
    if (use_xdbe) {
    XdbeSwapInfo swap;
    swap.swap_window = window.window;
    swap.swap_action = XdbeBackground;
    XdbeSwapBuffers(display, &swap, 1);
    #endif /* HAVE_XDBE */
    I guess this is one of the important bits:
    switch (window.type) {
    case TYPE_DESKTOP:
    prop = ATOM(_NET_WM_WINDOW_TYPE_DESKTOP);
    fprintf(stderr, PACKAGE_NAME": window type - desktop\n");
    fflush(stderr);
    break;
    Reading the NET_WM spec (which all major WMs use as the standard more or less) does not tell me anything meaningful (at least not for me ):
    _NET_WM_WINDOW_TYPE_DESKTOP indicates a desktop feature. This can include a single window containing desktop icons with the same dimensions as the screen, allowing the desktop environment to have full control of the desktop, without the need for proxying root window clicks.
    If anyone could tell me what to replace, that would be great .

    Hi lewisspindlove,
    Thanks for your input,
    it doesn't happen when i have my desktop in a "single picture" mode, and,
    it doesn't happen on other accounts, because besides mine(Admin), there is only
    the Guest account and this does not occur on that account.
    I tried your method of removing the wallpapers folder from Libary, then I
    noticed that the computer will select ANY image which I last used when in
    "single picture" mode, not "Change picture every 5mins" mode.
    For example, let's say I have a picture which I saved in the Documents folder,
    and I use that in "single picture" mode; after which I revert back to the folder which contains the pictures I want for "Change picture every 5mins" mode (which is stored somewhere else).
    If i go to the Login window & log back in again, the computer selects the picture
    I last used (the one in the Documents folder) as my background, BUT, after 5mins the picture changes to the ones I'm using for "Change picture every 5mins".
    I hope I'm not confusing everyone!
    This is a complicated & weird but ANNOYING problem!
    Any ideas if an Archive & Install would help? Does that erase all of my stored data on my HDD?

  • How to Increase Virtual memory in Windows XP (32 Bit ) O.S

    Hi Team,
    Could any one help me , how i can extend virtual memory in Windows Xp Professional sp3 (32 Bit Edition ) .  I am able to increase virtual memory in my Laptop ( Lenovo T 61, Windows Xp professional  ) up to 8 GB. But in desktop not able to
    increase more than 4 GB.
    is it  any hardware or processor dependency for virtual memory ?
    waiting for response ...
    Regards, Triyambak

    Sir, Follow these steps to Increase the Virtual Memory in XP.
    How to increase Virtual Memory?
    In Windows XP
    1.Click Start, and then click Control Panel.
    2.Click Performance and Maintenance, and then click System.
    3.On the Advanced tab, under Performance, click Settings.
    4.On the Advanced tab, under Virtual memory, click Change.
    5.Under Drive [Volume Label], click the drive that contains the paging file that you want to change.
    6.Under Paging file size for selected drive, click to Custom size check box. You can enter the amount of memory you would like to reserve for Virtual memory by entering the initial and maximum size. 
    7.Click Set
    When you are prompted to restart the computer, click Yes.
    Special Note: You should choose the same amount for the initial size and maximum size. This will Stop your CPU from constantly changing the paging file.
    Regards,
    MCP | MCTS | MCITP

  • Vlc & chromium contents persist across virtual desktops after -Syu

    I have just completed today's large pacman -Syu which includes upgrades chromium, vlc, a new kernel and nvidia blob  and many others.  On rebooting I  see that:
    (1) The vlc video window persists across across virtual desktops (although its frame is lost away from the desktop on which it was launched). This is using icewm as my WM.
    (2) The content of chromium tabs persist in the same way.
    Is anybody else seeing this please?
    Last edited by perseus (2014-01-13 23:15:05)

    This is interesting.
    I'm using openbox and I have the same problem when playing StarCraft II under wine. Just to clarify, I use the nvidia-drivers.
    I start it on my second vdesktop*, tab to the first one.. persists. Tab back to 2, tab to 3 (all fine), tab to 1 and everything stays fine.
    So I'd have to switch to 3, then to 1 to cleanly access 1.
    What the heck is going on?
    *Virtual desktop as in workspace. They are defined within openbox config.
    Edit: No one in #archlinux seems to know anything so far.
    Another edit: It only seems to happen when firefox is open on the desktop I want to access. Turning hardware acceleration off doesn't change a thing though.
    Last edited by Jellicent (2014-01-14 18:56:51)

Maybe you are looking for