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.
This commit is contained in:
committed by
Kristian Høgsberg
parent
c37b32dac2
commit
c6a7e4b277
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user