diff options
| author | moetunes <moetunes111@gmail.com> | 2011-10-08 10:17:08 +1000 |
|---|---|---|
| committer | moetunes <moetunes111@gmail.com> | 2011-10-08 10:17:08 +1000 |
| commit | b217dfdd87395d8b1881390cd3ce200227d81612 (patch) | |
| tree | b2b7c4fb169d06ee53a1039055d49dea6940fdb0 /src/dminiwm.c | |
| parent | a9f4548620eeba6fb81c6cabd8988b1fbbfcc90f (diff) | |
Fixed fullscreen mplayer
Diffstat (limited to 'src/dminiwm.c')
| -rwxr-xr-x | src/dminiwm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dminiwm.c b/src/dminiwm.c index 7a5b0e4..93a7c67 100755 --- a/src/dminiwm.c +++ b/src/dminiwm.c @@ -640,8 +640,14 @@ void configurerequest(XEvent *e) { XWindowChanges wc; wc.x = ev->x; wc.y = ev->y; - wc.width = ev->width; - wc.height = ev->height; + if(ev->width < sw) + wc.width = ev->width; + else + wc.width = sw - BORDER_WIDTH; + if(ev->height < sh) + wc.height = ev->height; + else + wc.height = sh - BORDER_WIDTH; wc.border_width = ev->border_width; wc.sibling = ev->above; wc.stack_mode = ev->detail; |
