summaryrefslogtreecommitdiff
path: root/src/xwayland/window-manager.c
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2012-09-28 02:45:06 -0600
committerKristian Høgsberg <krh@bitplanet.net>2012-10-10 11:23:41 -0400
commitc6a7e4b27788df6c6e9dd81fc4a12d9a8f232c77 (patch)
tree7639bf2374705819a0a3b361a3b77094e9e0952b /src/xwayland/window-manager.c
parentc37b32dac29b3e9989ed54f9582707be467f7a68 (diff)
downloadweston-c6a7e4b27788df6c6e9dd81fc4a12d9a8f232c77.tar.gz
weston-c6a7e4b27788df6c6e9dd81fc4a12d9a8f232c77.tar.bz2
weston-c6a7e4b27788df6c6e9dd81fc4a12d9a8f232c77.zip
toytoolkit: Don't draw shadows for maximized windows.
Add THEME_FRAME_MAXIMIZED flag so the theming system can know not to draw shadows for maximized windows. This allows maximized surfaces' content to be sized and placed in a more expectable fashion.
Diffstat (limited to 'src/xwayland/window-manager.c')
-rw-r--r--src/xwayland/window-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
index f5571a53..6d4ce1bb 100644
--- a/src/xwayland/window-manager.c
+++ b/src/xwayland/window-manager.c
@@ -1034,7 +1034,7 @@ weston_wm_destroy_cursors(struct weston_wm *wm)
static int
get_cursor_for_location(struct theme *t, int width, int height, int x, int y)
{
- int location = theme_get_location(t, x, y, width, height);
+ int location = theme_get_location(t, x, y, width, height, 0);
switch (location) {
case THEME_LOCATION_RESIZING_TOP:
@@ -1101,7 +1101,7 @@ weston_wm_handle_button(struct weston_wm *wm, xcb_generic_event_t *event)
location = theme_get_location(t,
button->event_x,
button->event_y,
- width, height);
+ width, height, 0);
switch (location) {
case THEME_LOCATION_TITLEBAR: