projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6955202
)
set fullscreen and max positions properly for all gravities
author
Dana Jansens
<danakj@orodu.net>
Mon, 31 Mar 2003 07:22:19 +0000
(07:22 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 31 Mar 2003 07:22:19 +0000
(07:22 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index 95d1e97e1539613eb1c7b4c19a33017fac88fa2d..6830ab73e25c74f813fa58a1271887678eb8ce22 100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-1316,6
+1316,11
@@
void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
{
gboolean moved = FALSE, resized = FALSE;
+ /* gets the frame's position */
+ frame_client_gravity(self->frame, &x, &y);
+
+ /* these positions are frame positions, not client positions */
+
/* set the size and position if fullscreen */
if (self->fullscreen) {
x = 0;
@@
-1335,6
+1340,9
@@
void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
}
}
+ /* gets the client's position */
+ frame_frame_gravity(self->frame, &x, &y);
+
/* these override the above states! if you cant move you can't move! */
if (user) {
if (!(self->functions & Func_Move)) {