Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | workspace: focus only ancestors that are focusable | Alberts Muktupāvels | 2022-10-03 | 1 | -7/+32 |
| | | | | | Based on mutter commit: https://gitlab.gnome.org/GNOME/mutter/-/commit/eccc791f3b3451216f957e67fec47a73b65ed2b2 | ||||
* | window: add meta_window_is_focusable | Alberts Muktupāvels | 2022-10-03 | 3 | -3/+11 |
| | | | | | | Based on mutter commits: https://gitlab.gnome.org/GNOME/mutter/-/commit/43633d6b2f6f602ba87956d5c20ee336b8b56236 https://gitlab.gnome.org/GNOME/mutter/-/commit/58d2a674c466b607e18e6c8e129a6cf1646fde7f | ||||
* | window-props: do not spew initial size_hints differences | Alberts Muktupāvels | 2022-10-03 | 1 | -1/+2 |
| | |||||
* | window-props: stop lying about what client window sets or does not | Alberts Muktupāvels | 2022-10-03 | 1 | -5/+9 |
| | | | | | | We are calling meta_set_normal_hints from meta_window_new to initialize size_hints. Claiming that window sets minimum size to zero or that window did not set gravity is wrong and missleading. | ||||
* | window-props: do not set XSizeHints flags | Alberts Muktupāvels | 2022-10-03 | 1 | -6/+0 |
| | | | | Keep flags as they were set on client window. | ||||
* | xprops: simplify size_hints_from_results | Alberts Muktupāvels | 2022-10-03 | 2 | -19/+9 |
| | |||||
* | xprops: remove unused functions | Alberts Muktupāvels | 2022-10-03 | 1 | -106/+0 |
| | |||||
* | window: return _NET_WM_PID when XRes is not available | Alberts Muktupāvels | 2022-09-30 | 1 | -0/+3 |
| | | | | | | To use XResQueryClientIds we need XRes 1.2 or newer! https://gitlab.gnome.org/GNOME/libwnck/-/issues/154 | ||||
* | window-props: re-add support for _NET_WM_PID | Alberts Muktupāvels | 2022-09-30 | 3 | -0/+30 |
| | | | | | | | We will use _NET_WM_PID when xserver does not have XRes extension or its version is too old. This partially reverts 9135966673e9fd430b9e8252abdb9c946295e25b. | ||||
* | display: check if XRes extension is available | Alberts Muktupāvels | 2022-09-30 | 2 | -0/+23 |
| | | | | We are using XResQueryClientIds that is available in 1.2 version. | ||||
* | window-props: define HAVE_SYS_TIME_H | Alberts Muktupāvels | 2022-09-30 | 1 | -0/+1 |
| | | | | https://gitlab.gnome.org/GNOME/libgtop/-/merge_requests/34 | ||||
* | icon-cache: reset origin if property change invalidates icon | Alberts Muktupāvels | 2022-03-22 | 1 | -11/+16 |
| | | | | | | | | Client theoretically can unset / remove icon. We need to reset origin to make sure we try to load icon from other sources. Test application that can be used to set/unset icons: https://gitlab.gnome.org/GNOME/libwnck/-/merge_requests/42 | ||||
* | icon-cache: make get_icon_invalidated static | Alberts Muktupāvels | 2022-03-22 | 2 | -2/+1 |
| | |||||
* | window: remove incorrect mask check | Alberts Muktupāvels | 2022-03-22 | 1 | -5/+4 |
| | | | | | | XResGetClientPid already checks for XRES_CLIENT_ID_PID_MASK and does that correctly. We were doing direct comparition that would fail if mask would include something else. | ||||
* | icon-cache: remove support for KWM_WIN_ICON | Alberts Muktupāvels | 2022-03-19 | 4 | -101/+2 |
| | | | | | According to Debian Code Search only MPlayer sets this property (together with _NET_WM_ICON). | ||||
* | core: drop use of volatile | Alberts Muktupāvels | 2021-08-21 | 1 | -1/+1 |
| | |||||
* | window: offset gravity position by invisible borders | Alberts Muktupāvels | 2021-07-22 | 1 | -2/+15 |
| | | | | https://gitlab.gnome.org/GNOME/metacity/-/issues/21 | ||||
* | main: use correct timestamp when closing display | Alberts Muktupāvels | 2021-07-19 | 1 | -2/+7 |
| | |||||
* | main: add SIGINT handler | Alberts Muktupāvels | 2021-07-19 | 1 | -1/+14 |
| | | | | | | | | | With this metacity will exit cleanly when hitting Ctrl + C. To preserve existing behaviour with XSMP do not change restart style hint to IfRunning. https://gitlab.gnome.org/GNOME/metacity/-/issues/21 | ||||
* | main: use g_unix_signal_add to add signal handler | Alberts Muktupāvels | 2021-07-19 | 1 | -35/+5 |
| | |||||
* | session: always finish interaction | Alberts Muktupāvels | 2021-07-19 | 1 | -0/+5 |
| | | | | | | | | | | | After commits 0b3f45bb1bf8 and db37deb589ea SmcInteractDone and SmcSaveYourselfDone is only called if zenity dialog exits with 0 code. Finish interaction also when dialog is closed by pressing Cancel indicating that shutdown should be canceled. https://gitlab.gnome.org/GNOME/metacity/-/issues/20 | ||||
* | session: remove redundant assignment | Alberts Muktupāvels | 2021-07-19 | 1 | -1/+0 |
| | |||||
* | window-props: don't set override-redirect window as parent | Alberts Muktupāvels | 2021-06-21 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | | | Before commit c656c658940d override-redirect windows was not registered with meta_display_register_x_window. This means that Metacity was treating WM_TRANSIENT_FOR hint as invalid if it was pointing to override-redirect window. EWMH specification [1] says that WM_TRANSIENT_FOR property is defined for managed windows and extends its usage for override-redirect windows. Client should set WM_TRANSIENT_FOR on override-redirect window if it is child/popup for another window. As specification does not say anyting about using override-redirect windows as parent for managed windows and because it causes crashes in Metacity ignore WM_TRANSIENT_FOR if it is pointing to override-redirect window. [1] https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm46291029654544 https://gitlab.gnome.org/GNOME/metacity/-/issues/18 | ||||
* | misc: remove Coverity annotations | Alberts Muktupāvels | 2021-03-19 | 2 | -6/+0 |
| | |||||
* | bell: remove unused code | Alberts Muktupāvels | 2021-03-16 | 2 | -40/+0 |
| | |||||
* | bell: remove tabs | Alberts Muktupāvels | 2021-03-16 | 1 | -36/+41 |
| | |||||
* | testboxes: fix test_find_closest_point_to_line test | Alberts Muktupāvels | 2021-03-16 | 1 | -4/+12 |
| | | | | Use g_assert_cmpfloat_with_epsilon to compare floating points. | ||||
* | testboxes: use GRand to generate random numbers | Alberts Muktupāvels | 2021-03-16 | 1 | -10/+9 |
| | | | | Coverity CID: #1418268 | ||||
* | place: use GRand to generate random numbers | Alberts Muktupāvels | 2021-03-16 | 1 | -3/+9 |
| | | | | Coverity CID: #1445646 | ||||
* | display: add NULL check to fix coverity defect | Alberts Muktupāvels | 2021-03-15 | 1 | -1/+1 |
| | | | | | | | Coverity is right that window might be null but does not know that grab_op is not moving operation. Coverity CID: #1445663 | ||||
* | window: fix logically dead code defect | Alberts Muktupāvels | 2021-03-15 | 1 | -3/+9 |
| | | | | | | We assert that at least one of the two directions are set! Coverity CID: #1418266 | ||||
* | main: check g_setenv return value | Alberts Muktupāvels | 2021-03-14 | 1 | -1/+4 |
| | | | | Coverity CID: #1502679 | ||||
* | core: suppress logically dead code defect | Alberts Muktupāvels | 2021-03-14 | 1 | -0/+1 |
| | | | | Coverity CID: #1445660 | ||||
* | place: use correct event to suppress defects | Alberts Muktupāvels | 2021-03-14 | 1 | -2/+2 |
| | | | | Coverity CID: #1445646 | ||||
* | place: suppress logically dead code defects | Alberts Muktupāvels | 2021-03-14 | 1 | -0/+6 |
| | | | | | | Both enumeration values are handled outside of switch. Coverity CID: #1445661 | ||||
* | session: fix memory leak | Alberts Muktupāvels | 2021-03-14 | 1 | -3/+1 |
| | | | | Coverity CID: #1502682 | ||||
* | xprops: remove unneeded NULL check | Alberts Muktupāvels | 2021-03-14 | 1 | -5/+2 |
| | | | | Coverity CID: #1418331 | ||||
* | stack-tracker: stop using GSlice | Alberts Muktupāvels | 2021-03-14 | 1 | -5/+5 |
| | |||||
* | core: use g_memdup2 | Alberts Muktupāvels | 2021-03-14 | 2 | -2/+2 |
| | |||||
* | window: check XResQueryClientIds return value | Alberts Muktupāvels | 2020-10-22 | 1 | -5/+12 |
| | |||||
* | session: check fcntl return value | Alberts Muktupāvels | 2020-10-21 | 1 | -3/+8 |
| | | | | | | This function can fail. CID 1220275. | ||||
* | window: make window_is_terminal private | Jasper St. Pierre | 2020-10-10 | 2 | -9/+5 |
| | |||||
* | stack: don't ignore workspace in get_default_focus_window | Alberts Muktupāvels | 2020-10-10 | 3 | -7/+20 |
| | | | | | | Commit 00b3e2af07a3 stopped using workspace argument. Redo that change to use passed in workspace instead of assuming it is always active workspace. | ||||
* | main: use enumeration type to find value | Alberts Muktupāvels | 2020-09-13 | 1 | -9/+12 |
| | |||||
* | compositor: add MetaCompositorXPresent | Alberts Muktupāvels | 2020-09-12 | 1 | -0/+7 |
| | | | | https://gitlab.gnome.org/GNOME/metacity/-/issues/13 | ||||
* | window-props: remove support for _NET_WM_PID | Alberts Muktupāvels | 2020-09-12 | 3 | -77/+0 |
| | |||||
* | window-props: use meta_window_get_client_pid | Alberts Muktupāvels | 2020-09-12 | 1 | -7/+11 |
| | |||||
* | delete: use meta_window_get_client_pid | Alberts Muktupāvels | 2020-09-12 | 1 | -2/+5 |
| | |||||
* | bell: use meta_window_get_client_pid | Alberts Muktupāvels | 2020-09-12 | 1 | -1/+5 |
| | |||||
* | window: add meta_window_get_client_pid | Alberts Muktupāvels | 2020-09-12 | 2 | -0/+39 |
| |