diff options
author | Scott Moreau <oreaus@gmail.com> | 2012-09-28 02:45:06 -0600 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-10 11:23:41 -0400 |
commit | c6a7e4b27788df6c6e9dd81fc4a12d9a8f232c77 (patch) | |
tree | 7639bf2374705819a0a3b361a3b77094e9e0952b /src/xwayland/window-manager.c | |
parent | c37b32dac29b3e9989ed54f9582707be467f7a68 (diff) | |
download | weston-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.c | 4 |
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: |