aboutsummaryrefslogtreecommitdiff
path: root/apps/wm/wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wm/wm.c')
-rw-r--r--apps/wm/wm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/wm/wm.c b/apps/wm/wm.c
index 7ed67af..9af1ede 100644
--- a/apps/wm/wm.c
+++ b/apps/wm/wm.c
@@ -4,7 +4,6 @@
#include <def.h>
#include <errno.h>
#include <input.h>
-#include <ioctl.h>
#include <libgui/gfx.h>
#include <libgui/gui.h>
#include <libgui/msg.h>
@@ -495,7 +494,7 @@ int main(int argc, char **argv)
atexit(handle_exit);
- assert(ioctl("/dev/fb", IO_FB_GET, &screen) == 0);
+ assert(ioctl("/dev/fb", 0, &screen) == 0);
log("WM loaded: %dx%d\n", screen.width, screen.height);
wm_client = (struct client){ .pid = getpid() };
bypp = (screen.bpp >> 3);