Commit Graph

1288 Commits

Author SHA1 Message Date
Kovid Goyal
255dd2845e Implement grab keyboard for x11 2025-05-18 14:49:07 +05:30
Kovid Goyal
abc9b1fc48 ... 2025-05-18 12:06:10 +05:30
Kovid Goyal
82523b14df Wayland: Dont loose keyboard grab when new OS window created 2025-05-18 11:43:41 +05:30
Kovid Goyal
6f689f3221 Work on keyboard grabbing functionality 2025-05-18 11:37:11 +05:30
Jin Liu
4c6c38929b panel kitten: on Wayland, use app-id for the LayerShellV1 namespace parameter
The Wayland LayerShellV1 protocol doesn't allow setting window class/name/role/type/appId.
Instead, it has a `namespace` parameter that we currently hardcode to `kitty`. It
seems suitable to use app-id for this parameter.

Example use case:
kwin use the `namespace` parameter and an undocumented mapping to set window type for
Layer Shell windows. E.g., "dock" maps to NET:Dock. So if we set `app_id dock` in
quick_access_terminal.conf, the panel would be considered a dock, and won't have the
normal scale in/out animation on shown/hidden.
2025-05-15 23:55:48 +08:00
Kovid Goyal
8017945551 Wayland: Add support for the xdg-toplevel-tag protocol
Now you can use --name or its alias --os-window-tag to set the tag.
2025-05-15 09:35:42 +05:30
Kovid Goyal
6282a46ff1 A new centered panel type that is sized 2025-05-13 16:38:57 +05:30
Kovid Goyal
88f4c829eb Improve handling of output names
Now can use panel --output-name list to list available outputs.
Also, --output-name works on macOS
2025-05-13 15:29:37 +05:30
Kovid Goyal
8e12cccf26 ... 2025-05-13 08:00:35 +05:30
Kovid Goyal
20d6a8e4c5 Fix building on older Cocoa 2025-05-13 07:45:11 +05:30
Kovid Goyal
9ed6be9272 Quick access terminal: Allow toggling the window to full screen and map using the standard kitty toggle_fullscreen shortcut
Fixes #8626
2025-05-12 15:20:48 +05:30
Kovid Goyal
015ee41d0f ... 2025-05-12 13:17:46 +05:30
Kovid Goyal
064bc963a8 macOS: Quick access terminal: Restore focus to previously active window when hiding the quick access terminal window
Fixes #8627
2025-05-12 13:15:42 +05:30
Kovid Goyal
8a14a5638a ... 2025-05-08 15:30:09 +05:30
Kovid Goyal
2fed0ec562 Linux: Handle desktop settings portals that are so old they don't implement ReadOne
Sigh, outdated Linux software, just creating busy work for everyone.
2025-05-08 15:22:42 +05:30
Kovid Goyal
d22381491d Restore top/bottom panel functionality on i3 2025-05-03 11:12:32 +05:30
Kovid Goyal
43be32a3d7 More atoms 2025-05-02 12:20:54 +05:30
Kovid Goyal
958489f97d X11: Workaround for floating window position on KDE 2025-05-02 10:11:15 +05:30
Kovid Goyal
afe7dc47c2 Update size in addition to position when updating layer properties 2025-05-02 09:35:25 +05:30
Kovid Goyal
11cb3adb8f Reduce roundtrips to X server to fetch atom values 2025-05-02 09:28:24 +05:30
Kovid Goyal
a9bc9962f4 X11: add support for --output-name 2025-05-02 08:37:49 +05:30
Kovid Goyal
a2631448e5 X11: fix window type for non background layers 2025-05-02 08:20:51 +05:30
Kovid Goyal
be9624bbdd Fix px suffix for lines/columns not working 2025-05-02 08:11:49 +05:30
Kovid Goyal
6c0e5f09d3 Fix layer size calculation on high DPI displays under X11 2025-05-02 08:01:35 +05:30
Kovid Goyal
ca688be41c Use focus policy for controlling input on X11 2025-05-01 21:42:00 +05:30
Kovid Goyal
07342ca801 Fix strut allocation 2025-05-01 21:28:22 +05:30
Kovid Goyal
28dbb4681d Fix margins for background and input for docks 2025-05-01 20:58:49 +05:30
Kovid Goyal
f04fc251bf Start work on full panel support in X11 2025-05-01 15:44:08 +05:30
Kovid Goyal
a6b8a7305c Better error message when X11 window manager doesnt support the needed Atoms for panels 2025-04-30 20:58:57 +05:30
Kovid Goyal
edcfd17ca9 Panel kitten: Add option to hide panel on focus loss 2025-04-30 07:46:41 +05:30
Kovid Goyal
df052edae8 Wayland: Also set layer shell surface layer when showing surface
Without this on KDE the layer is reset to background.
2025-04-30 06:38:12 +05:30
Kovid Goyal
4fa67c9ffd macOS: Relayout layer shell windows on screen size change 2025-04-29 21:33:05 +05:30
Kovid Goyal
50b044f8a2 Allow popup menus from global menubar to function 2025-04-25 20:41:44 +05:30
Kovid Goyal
189d78283c Get the quake terminal working on macOS 2025-04-25 20:27:26 +05:30
Kovid Goyal
2c2ddbb8f5 Remove useless animate parameter 2025-04-23 20:59:34 +05:30
Kovid Goyal
c3e1f2317b Finish calculations for other panel types in cocoa 2025-04-23 20:36:35 +05:30
Kovid Goyal
5abc33bcf2 Layer shell: inform compositor of newly desired window size when changing layer shell config
Without this non-sway compositors dont send a layer shell configure
event after the surface commit.

Fixes #8566
2025-04-23 19:26:13 +05:30
Kovid Goyal
413a2b96e2 Prevent background panel launch taking focus from key window 2025-04-23 13:16:01 +05:30
Kovid Goyal
09eb5edcca Get background panel basically working on macOS 2025-04-23 12:42:24 +05:30
Kovid Goyal
88735743cf Allow negative margin values 2025-04-23 12:05:28 +05:30
Kovid Goyal
c1b6b4494a Implement starting kitty hidden
Fixes #3466
2025-04-23 08:50:02 +05:30
Kovid Goyal
ca30b4196b Prevent minimize/maximize/fullscreen for layer shell windows 2025-04-23 07:43:36 +05:30
Kovid Goyal
3c4a8a1e7e Resize OS panels on font size change 2025-04-23 07:43:36 +05:30
Kovid Goyal
ae01cf3c1c Refactor layer shell size callback to support multiple backends 2025-04-23 07:43:36 +05:30
Kovid Goyal
c9bf7e4236 Factor out Cocoa layer shell code into the proper function 2025-04-23 07:43:36 +05:30
Kovid Goyal
e93338a81c Start work on macOS support for panel kitten 2025-04-23 07:43:36 +05:30
Kovid Goyal
40f18ac507 make kwin bug searchable 2025-04-22 14:57:08 +05:30
Kovid Goyal
dd5401ebed ... 2025-04-22 14:56:39 +05:30
Kovid Goyal
26affb3513 ... 2025-04-22 14:54:23 +05:30
Kovid Goyal
4c0a7223c1 Fix show/hide of OS windows on wayland 2025-04-22 14:53:35 +05:30