1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

- Removed legacy OFFIX_DND support code

- Fixed the signal handler for crashes (ie, removed it) and made wmaker
  restarting be made automatically by a monitoring process.
- Made NetWM support be enabled by default
- Removed old code to store/restore workspace state (now relies on netwm)
This commit is contained in:
kojima
2004-10-13 05:09:08 +00:00
parent 6830b05716
commit 879b00a57b
22 changed files with 273 additions and 339 deletions

View File

@@ -40,6 +40,7 @@
#include "icon.h"
#include "stacking.h"
#include "xinerama.h"
#include "properties.h"
#ifdef DEBUG_WMSPEC
@@ -348,6 +349,24 @@ wNETWMUpdateDesktop(WScreen *scr)
}
int
wNETWMGetCurrentDesktopFromHint(WScreen *scr)
{
int count;
unsigned char *prop;
prop= PropGetCheckProperty(scr->root_win, net_current_desktop, XA_CARDINAL,
0, 1, &count);
if (prop)
{
int desktop= *(CARD32*)prop;
XFree(prop);
return desktop;
}
return -1;
}
static void
updateIconImage(WScreen *scr, WWindow *wwin)
{
@@ -509,7 +528,6 @@ wNETWMInitStuff(WScreen *scr)
updateClientList(scr);
updateClientListStacking(scr, NULL);
updateWorkspaceCount(scr);
updateCurrentWorkspace(scr);
updateWorkspaceNames(scr);
updateShowDesktop(scr, False);