quartz-wm source is not available... will have to try some trickery in WineskinX11 to make sure quartz-wm is quit if going to a fullscreen mode, then restarted if going to rootless.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if (pMode->refresh != FAKE_REFRESH_ROOTLESS) {
size_t myWidth = pQuartzScreen->currentMode.width;
size_t myHeight = pQuartzScreen->currentMode.height;
FILE *file;
file = fopen("/tmp/WineskinXrandrTempFile","w+");
fprintf(file,"%i\n%i\n",myWidth,myHeight);
fclose(file);
}
This writes out a file so Wineskin.m will get the info on the last fullscreen resolution. Whenever this file is written I know I can kill quartz-wm, as it will be going to fullscreen. Need to modify this for WS8 so that if it is going to rootless, it will also write the file but indicate rootless, so that Wineskin.m will know to start quartz-wm back....
This may or may not work... will have to test it out next WS8 test build.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well I updated the code for this, working as the others... writing out rootless int he temp file that Wineskin.m reads... but that will not work. Wineskin.m will not be able to kill quartz-wm until after the switches are made, instead of before. Leave the rootless righting out so Wineskin.m can set gamma right in rootless, but need to make WineskinX11 actually kill or start quartz-wm on its own, before any resolution changes are made... also hard code it in to launch it on its own the first time instead of in Wineskin.m.
Basically do this..
if switching to Rootless, then change to rootless and start quartz-wm
if switching to non-rootless, kill quartz-wm if its running, then change resolution.
that should work...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
in current WIneskin 2.3 wrappers, quartz-wm is always being ran wether its working or not. This is throwing off Override->Fullscreen down extra pixels for the bar space of the quartz-wm bar.
need to make sure that quartz-wm never runs if we are doing an override fullscreen setting, or any time before loading in window placement, it needs to have the running of it killed off soon enough. Might have to look into window placement in xquartz itself, but this will have to be played around with more in a WS8 build.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
killing and started quartz-wm totally hoses things in Wine. I made a engine base that handled this correctly and it just screws up the graphics in every game when quartz-wm is killed... if it wasn't running when the game started, it will start up fine and work, but then when its killed... nothing works anymore. I fought this for several days, and there is just no way to do it with this method. Closing this... it won't happen until Wine starts playing better with window managers, or until quartz-wm improves.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
quartz-wm source is not available... will have to try some trickery in WineskinX11 to make sure quartz-wm is quit if going to a fullscreen mode, then restarted if going to rootless.
in quartzRandR.c
if (pMode->refresh != FAKE_REFRESH_ROOTLESS) {
size_t myWidth = pQuartzScreen->currentMode.width;
size_t myHeight = pQuartzScreen->currentMode.height;
FILE *file;
file = fopen("/tmp/WineskinXrandrTempFile","w+");
fprintf(file,"%i\n%i\n",myWidth,myHeight);
fclose(file);
}
This writes out a file so Wineskin.m will get the info on the last fullscreen resolution. Whenever this file is written I know I can kill quartz-wm, as it will be going to fullscreen. Need to modify this for WS8 so that if it is going to rootless, it will also write the file but indicate rootless, so that Wineskin.m will know to start quartz-wm back....
This may or may not work... will have to test it out next WS8 test build.
remember to change Wineskin.m to look for the rootless check to fix gamma changes on rootless since now it turns off sometimes.
well I updated the code for this, working as the others... writing out rootless int he temp file that Wineskin.m reads... but that will not work. Wineskin.m will not be able to kill quartz-wm until after the switches are made, instead of before. Leave the rootless righting out so Wineskin.m can set gamma right in rootless, but need to make WineskinX11 actually kill or start quartz-wm on its own, before any resolution changes are made... also hard code it in to launch it on its own the first time instead of in Wineskin.m.
Basically do this..
if switching to Rootless, then change to rootless and start quartz-wm
if switching to non-rootless, kill quartz-wm if its running, then change resolution.
that should work...
Make sure focus follows mouse is disabled by default in WS8 as well.
need to add to this...
in current WIneskin 2.3 wrappers, quartz-wm is always being ran wether its working or not. This is throwing off Override->Fullscreen down extra pixels for the bar space of the quartz-wm bar.
need to make sure that quartz-wm never runs if we are doing an override fullscreen setting, or any time before loading in window placement, it needs to have the running of it killed off soon enough. Might have to look into window placement in xquartz itself, but this will have to be played around with more in a WS8 build.
this is impossible.
killing and started quartz-wm totally hoses things in Wine. I made a engine base that handled this correctly and it just screws up the graphics in every game when quartz-wm is killed... if it wasn't running when the game started, it will start up fine and work, but then when its killed... nothing works anymore. I fought this for several days, and there is just no way to do it with this method. Closing this... it won't happen until Wine starts playing better with window managers, or until quartz-wm improves.