-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp | ||
index 4216555..48c017d 100644 | ||
--- a/src/steamcompmgr.cpp | ||
+++ b/src/steamcompmgr.cpp | ||
@@ -3236,7 +3236,7 @@ found:; | ||
if ( window_has_commits( focus ) ) | ||
out->focusWindow = focus; | ||
else | ||
- focus->outdatedInteractiveFocus = true; | ||
+ out->outdatedInteractiveFocus = true; | ||
|
||
// Always update X's idea of focus, but still dirty | ||
// the it being outdated so we can resolve that globally later. | ||
@@ -5963,28 +5963,37 @@ bool handle_done_commit( steamcompmgr_win_t *w, xwayland_ctx_t *ctx, uint64_t co | ||
// Window just got a new available commit, determine if that's worth a repaint | ||
|
||
// If this is an overlay that we're presenting, repaint | ||
- if ( w == global_focus.overlayWindow && w->opacity != TRANSLUCENT ) | ||
+ if ( gameFocused ) | ||
{ | ||
- hasRepaintNonBasePlane = true; | ||
- } | ||
+ if ( w == global_focus.overlayWindow && w->opacity != TRANSLUCENT ) | ||
+ { | ||
+ hasRepaintNonBasePlane = true; | ||
+ } | ||
|
||
- if ( w == global_focus.notificationWindow && w->opacity != TRANSLUCENT ) | ||
- { | ||
- hasRepaintNonBasePlane = true; | ||
+ if ( w == global_focus.notificationWindow && w->opacity != TRANSLUCENT ) | ||
+ { | ||
+ hasRepaintNonBasePlane = true; | ||
+ } | ||
} | ||
- | ||
- // If this is an external overlay, repaint | ||
- if ( w == global_focus.externalOverlayWindow && w->opacity != TRANSLUCENT ) | ||
+ if ( ctx ) | ||
{ | ||
- hasRepaintNonBasePlane = true; | ||
+ if ( ctx->focus.outdatedInteractiveFocus ) | ||
+ { | ||
+ MakeFocusDirty(); | ||
+ ctx->focus.outdatedInteractiveFocus = false; | ||
+ } | ||
} | ||
- | ||
- if ( w->outdatedInteractiveFocus ) | ||
+ if ( global_focus.outdatedInteractiveFocus ) | ||
{ | ||
MakeFocusDirty(); | ||
- w->outdatedInteractiveFocus = false; | ||
- } | ||
+ global_focus.outdatedInteractiveFocus = false; | ||
|
||
+ // If this is an external overlay, repaint | ||
+ if ( w == global_focus.externalOverlayWindow && w->opacity != TRANSLUCENT ) | ||
+ { | ||
+ hasRepaintNonBasePlane = true; | ||
+ } | ||
+ } | ||
// If this is the main plane, repaint | ||
if ( w == global_focus.focusWindow && !w->isSteamStreamingClient ) | ||
{ |