Changeset View
Changeset View
Standalone View
Standalone View
src/netwm_def.h
Show First 20 Lines • Show All 412 Lines • ▼ Show 20 Line(s) | 283 | public: | |||
---|---|---|---|---|---|
413 | */ | 413 | */ | ||
414 | static bool typeMatchesMask(WindowType type, WindowTypes mask); | 414 | static bool typeMatchesMask(WindowType type, WindowTypes mask); | ||
415 | 415 | | |||
416 | /** | 416 | /** | ||
417 | Window state. | 417 | Window state. | ||
418 | 418 | | |||
419 | To set the state of a window, you'll typically do something like: | 419 | To set the state of a window, you'll typically do something like: | ||
420 | \code | 420 | \code | ||
421 | KWindowSystem::setState( winId(), NET::SkipTaskbar | NET::SkipPager ); | 421 | KWindowSystem::setState( winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher ); | ||
422 | \endcode | 422 | \endcode | ||
423 | 423 | | |||
424 | for example to not show the window on the taskbar and desktop pager. | 424 | for example to not show the window on the taskbar, desktop pager, or window switcher. | ||
425 | winId() is a function of QWidget() | 425 | winId() is a function of QWidget() | ||
426 | 426 | | |||
427 | Note that KeepAbove (StaysOnTop) and KeepBelow are meant as user preference and | 427 | Note that KeepAbove (StaysOnTop) and KeepBelow are meant as user preference and | ||
428 | applications should avoid setting these states themselves. | 428 | applications should avoid setting these states themselves. | ||
429 | **/ | 429 | **/ | ||
430 | 430 | | |||
431 | enum State { | 431 | enum State { | ||
432 | /** | 432 | /** | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 482 | /** | |||
484 | decorations. | 484 | decorations. | ||
485 | **/ | 485 | **/ | ||
486 | FullScreen = 1u << 9, | 486 | FullScreen = 1u << 9, | ||
487 | /** | 487 | /** | ||
488 | indicates that a window should be below most windows (but above any desktop windows). | 488 | indicates that a window should be below most windows (but above any desktop windows). | ||
489 | **/ | 489 | **/ | ||
490 | KeepBelow = 1u << 10, | 490 | KeepBelow = 1u << 10, | ||
491 | /** | 491 | /** | ||
492 | there was an attempt to activate this window, but the window manager prevented | 492 | there was an attempt to activate this window, but the window manager prevented | ||
apol: add `@since 5.45`? | |||||
Will it be 5.45 for KWayland as well? There were @since tags in what I duplicated, but I wasn't certain which version. sharvey: Will it be `5.45` for KWayland as well? There were `@since` tags in what I duplicated, but I… | |||||
493 | this. E.g. taskbar should mark such window specially to bring user's attention to | 493 | this. E.g. taskbar should mark such window specially to bring user's attention to | ||
494 | this window. Only the window manager is allowed to change it. | 494 | this window. Only the window manager is allowed to change it. | ||
495 | **/ | 495 | **/ | ||
496 | DemandsAttention = 1u << 11 | 496 | DemandsAttention = 1u << 11, | ||
497 | /** | ||||
498 | indicates that a window should not be included on a switcher. | ||||
499 | | ||||
500 | @since 5.45 | ||||
501 | **/ | ||||
502 | SkipSwitcher = 1u << 12 | ||||
graesslin: You cannot change enum values. Please add the new one afterwards | |||||
497 | }; | 503 | }; | ||
498 | Q_DECLARE_FLAGS(States, State) | 504 | Q_DECLARE_FLAGS(States, State) | ||
499 | 505 | | |||
500 | /** | 506 | /** | ||
501 | Direction for WMMoveResize. | 507 | Direction for WMMoveResize. | ||
502 | 508 | | |||
503 | When a client wants the Window Manager to start a WMMoveResize, it should | 509 | When a client wants the Window Manager to start a WMMoveResize, it should | ||
504 | specify one of: | 510 | specify one of: | ||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |
add @since 5.45?