cairo-util: Don't show a resize cursor on edges when we're maximized
This is substantially confusing to users, namely me. krh: Edited to just set grip size to zero.
This commit is contained in:
committed by
Kristian Høgsberg
parent
a4d9723341
commit
f11ad43ed0
+8
-3
@@ -488,10 +488,15 @@ theme_get_location(struct theme *t, int x, int y,
|
|||||||
int width, int height, int flags)
|
int width, int height, int flags)
|
||||||
{
|
{
|
||||||
int vlocation, hlocation, location;
|
int vlocation, hlocation, location;
|
||||||
const int grip_size = 8;
|
int margin, top_margin, grip_size;
|
||||||
int margin, top_margin;
|
|
||||||
|
|
||||||
margin = (flags & THEME_FRAME_MAXIMIZED) ? 0 : t->margin;
|
if (flags & THEME_FRAME_MAXIMIZED) {
|
||||||
|
margin = 0;
|
||||||
|
grip_size = 0;
|
||||||
|
} else {
|
||||||
|
margin = t->margin;
|
||||||
|
grip_size = 8;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags & THEME_FRAME_NO_TITLE)
|
if (flags & THEME_FRAME_NO_TITLE)
|
||||||
top_margin = t->width;
|
top_margin = t->width;
|
||||||
|
|||||||
Reference in New Issue
Block a user