Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 2477 Lines • ▼ Show 20 Line(s) | 2231 | { | |||
---|---|---|---|---|---|
2478 | 2478 | | |||
2479 | syncer.syncNow(); // important because of window rule updates! | 2479 | syncer.syncNow(); // important because of window rule updates! | ||
2480 | 2480 | | |||
2481 | updateAllowedActions(); | 2481 | updateAllowedActions(); | ||
2482 | updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size); | 2482 | updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size); | ||
2483 | emit quickTileModeChanged(); | 2483 | emit quickTileModeChanged(); | ||
2484 | } | 2484 | } | ||
2485 | 2485 | | |||
2486 | bool Client::isFullScreenable() const | 2486 | bool AbstractClient::isFullScreenable() const | ||
2487 | { | 2487 | { | ||
2488 | return isFullScreenable(false); | 2488 | return isFullScreenable(false); | ||
2489 | } | 2489 | } | ||
2490 | 2490 | | |||
2491 | bool Client::isFullScreenable(bool fullscreen_hack) const | 2491 | bool AbstractClient::isFullScreenable(bool fullscreen_hack) const | ||
2492 | { | 2492 | { | ||
2493 | if (!rules()->checkFullScreen(true)) | 2493 | if (!rules()->checkFullScreen(true)) | ||
2494 | return false; | 2494 | return false; | ||
2495 | if (fullscreen_hack) | 2495 | if (fullscreen_hack) | ||
2496 | return isNormalWindow(); | 2496 | return isNormalWindow(); | ||
2497 | if (rules()->checkStrictGeometry(true)) { // allow rule to ignore geometry constraints | 2497 | if (rules()->checkStrictGeometry(true)) { // allow rule to ignore geometry constraints | ||
2498 | QRect fsarea = workspace()->clientArea(FullScreenArea, this); | 2498 | QRect fsarea = workspace()->clientArea(FullScreenArea, this); | ||
2499 | if (sizeForClientSize(fsarea.size(), SizemodeAny, true) != fsarea.size()) | 2499 | if (sizeForClientSize(fsarea.size(), SizemodeAny, true) != fsarea.size()) | ||
▲ Show 20 Lines • Show All 1036 Lines • Show Last 20 Lines |