...
2 commits 4 files changed 0 commit comments 2 contributors
Commits on 2007-06-25
@Andreas Jaggi Andreas Jaggi Customized for NovaWave DFG. Maximizes all windows and does not listen to any keyboard or mouse events. 9035480
@Andreas Jaggi Andreas Jaggi Created branch for NovaWave DFG. c00fec0
Showing 4 changed files
View
11
client.c
 
#include "client.h"
 
XContext window_context;
//XContext frame_context; /* not used yet */
//XContext decoration_context; /* not used yet */
 
void init_clients ( ) {
window_context = XUniqueContext();
}
 
XGetWindowAttributes(display, w, &winattr);
 
c->window = w;
c->width = winattr.width;
c->height = winattr.height;
c->x = winattr.x;
c->y = winattr.y;
if ( c->width < DisplayWidth(display, DefaultScreen(display)) || c->height < DisplayHeight(display, DefaultScreen(display)) ) {
c->maximized = 0;
} else {
c->maximized = 1;
}
 
XSaveContext(display, w, window_context, (void*)c);
 
return c;
View
5
client.h
#include <stdio.h>
 
typedef struct _Client {
Window window;
int width;
int height;
int x;
int y;
int maximized;
} Client;
 
void init_clients();
Client* find_client(Window w);
View
x-wm.c
View
x-wm.h