mirror of
https://github.com/swaywm/sway.git
synced 2025-01-16 16:11:11 +01:00
Remove superfluous IPC urgent events
When an xwayland view is mapped, the IPC urgent event was being sent on every surface commit. I had intentionally ommitted the check because I figured an urgent surface could update its urgent timestamp by sending urgent a second time. But that's not how it works in xwayland's case, and it makes for more complicated code.
This commit is contained in:
parent
7268d544c2
commit
9cbff272cb
1 changed files with 3 additions and 0 deletions
|
@ -1080,6 +1080,9 @@ bool view_is_visible(struct sway_view *view) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void view_set_urgent(struct sway_view *view, bool enable) {
|
void view_set_urgent(struct sway_view *view, bool enable) {
|
||||||
|
if (view_is_urgent(view) == enable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (enable) {
|
if (enable) {
|
||||||
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
||||||
if (seat_get_focus(seat) == view->swayc) {
|
if (seat_get_focus(seat) == view->swayc) {
|
||||||
|
|
Loading…
Reference in a new issue