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:
20
src/wmspec.c
20
src/wmspec.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user